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

Function getRuntimeType

packages/effect/src/SchemaAST.ts:3504–3504  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

3502const emptyCandidates: ReadonlyArray<never> = Object.freeze([])
3503
3504const getRuntimeType = (input: unknown): Type => input === null ? "null" : Array.isArray(input) ? "array" : typeof input
3505
3506// Snapshot once so parser initialization and code generation use the same policy.
3507// Keep __proto__ own-only even when Node's --disable-proto=delete removes its accessor.

Callers 1

getCandidateIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected