MCPcopy Create free account
hub / github.com/andywer/postguard / mapPropertyTypesToSchemaDescriptor

Function mapPropertyTypesToSchemaDescriptor

src/typescript/objectish.ts:73–84  ·  view source on GitHub ↗
(propTypes: {
  [key: string]: ts.Type
})

Source from the content-addressed store, hash-verified

71}
72
73export function mapPropertyTypesToSchemaDescriptor(propTypes: {
74 [key: string]: ts.Type
75}): TableSchemaDescriptor {
76 // TODO: Map types properly
77 const schema: TableSchemaDescriptor = {}
78
79 for (const key of Object.keys(propTypes)) {
80 schema[key] = Schema.Any
81 }
82
83 return schema
84}

Callers 1

createQueryInvocationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected