MCPcopy Index your code
hub / github.com/Effect-TS/effect / isVoid

Function isVoid

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

Source from the content-addressed store, hash-verified

1019}
1020
1021function isVoid(jsonSchema: JsonSchema7): jsonSchema is JsonSchema7Void {
1022 return "$id" in jsonSchema && jsonSchema.$id === constVoid.$id
1023}
1024
1025function isCompactableLiteral(jsonSchema: JsonSchema7 | undefined): jsonSchema is JsonSchema7Enum {
1026 return Predicate.hasProperty(jsonSchema, "enum") && "type" in jsonSchema && Object.keys(jsonSchema).length === 2

Callers 1

compactUnionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected