MCPcopy
hub / github.com/Effect-TS/effect / isNeverWithoutCustomAnnotations

Function isNeverWithoutCustomAnnotations

packages/effect/src/JSONSchema.ts:1008–1011  ·  view source on GitHub ↗
(jsonSchema: JsonSchema7)

Source from the content-addressed store, hash-verified

1006}
1007
1008function isNeverWithoutCustomAnnotations(jsonSchema: JsonSchema7): boolean {
1009 return jsonSchema === constNever || (Predicate.hasProperty(jsonSchema, "$id") && jsonSchema.$id === constNever.$id &&
1010 Object.keys(jsonSchema).length === 3 && jsonSchema.title === AST.neverKeyword.annotations[AST.TitleAnnotationId])
1011}
1012
1013function isAny(jsonSchema: JsonSchema7): jsonSchema is JsonSchema7Any {
1014 return "$id" in jsonSchema && jsonSchema.$id === constAny.$id

Callers 2

goFunction · 0.85
compactUnionFunction · 0.85

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…