MCPcopy
hub / github.com/steel-dev/steel-browser / $ref

Function $ref

api/src/utils/schema.ts:56–66  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

54 }, [] as JsonSchema[]);
55
56 const $ref: $Ref<M> = (key) => {
57 const $ref = `${typeof key === `string` ? key : key.key}#`;
58 return typeof key === `string`
59 ? {
60 $ref,
61 }
62 : {
63 $ref,
64 description: key.description,
65 };
66 };
67 return {
68 schemas: cleanedSchemas,
69 $ref,

Callers 5

logsRoutesFunction · 0.85
routesFunction · 0.85
routesFunction · 0.85
routesFunction · 0.85
routesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected