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

Function isStringArray

packages/tools/ai-codegen/src/Generator.ts:133–133  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

131}
132
133const isStringArray = (u: unknown): u is ReadonlyArray<string> => Array.isArray(u) && u.every(Predicate.isString)
134
135const requiredKey = (branch: unknown): string | undefined =>
136 Predicate.isObject(branch) && Object.keys(branch).length === 1 && isStringArray(branch.required) &&

Callers 6

requiredKeyFunction · 0.70
typeComplementFunction · 0.70
rewriteNotFunction · 0.70
isPlainObjectFunction · 0.70
excludesObjectFunction · 0.70
acceptsNullFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected