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

Function isNonEmptyString

packages/effect/test/Predicate.test.ts:16–16  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

14type NonEmptyString = string & NonEmptyStringBrand
15
16const isNonEmptyString: Predicate.Refinement<string, NonEmptyString> = (s): s is NonEmptyString => s.length > 0
17
18describe("compose", () => {
19 it("composes refinements to narrow through both checks", () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected