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

Function documentOf

packages/ui/devtools/src/internal/remote.ts:201–201  ·  view source on GitHub ↗
(schema: Schema.Top)

Source from the content-addressed store, hash-verified

199const codecOf = (schema: Schema.Top) => Schema.toCodecJson(schema as Schema.Codec<unknown>)
200
201const documentOf = (schema: Schema.Top): Document => Schema.toJsonSchemaDocument(codecOf(schema)) as unknown as Document
202
203const membersOf = (document: Document): ReadonlyArray<Json> => {
204 const root = resolve(document.schema, document.definitions)

Callers 5

messageSchemaFunction · 0.85
walkedFunction · 0.85
layerFunction · 0.85
mountRootFunction · 0.85
defineElementFunction · 0.85

Calls 1

codecOfFunction · 0.70

Tested by

no test coverage detected