MCPcopy Create free account
hub / github.com/Effect-TS/effect / isString

Function isString

packages/effect/test/Predicate.test.ts:8–8  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

6const isNegative: Predicate.Predicate<number> = (n) => n < 0
7const isLessThan2: Predicate.Predicate<number> = (n) => n < 2
8const isString: Predicate.Refinement<unknown, string> = (u: unknown): u is string => typeof u === "string"
9
10interface NonEmptyStringBrand {
11 readonly NonEmptyString: unique symbol

Callers 1

Option.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected