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

Function isStringTreeLeaf

packages/effect/src/SchemaAST.ts:4189–4191  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

4187}
4188
4189function isStringTreeLeaf(u: unknown): boolean {
4190 return u === undefined || typeof u === "string"
4191}
4192
4193function isTree(u: unknown, isLeaf: (u: unknown) => boolean): boolean {
4194 const cache = new WeakMap<object, boolean>()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected