@archtx/procedures
Advanced tools
Comparing version
@@ -12,2 +12,2 @@ import { Static } from '@sinclair/typebox'; | ||
} ? true : false; | ||
export declare function isSuretypeSchema(schema: any): schema is CoreValidator<unknown>; | ||
export declare function isSuretypeSchema(schema: any): schema is CoreValidator<any>; |
@@ -5,4 +5,4 @@ export function isTypeboxSchema(schema) { | ||
export function isSuretypeSchema(schema) { | ||
return typeof schema === 'object' && '_annotations' in schema; | ||
return typeof schema === 'object' && 'getJsonSchemaObject' in schema; | ||
} | ||
//# sourceMappingURL=resolve-schema-lib.js.map |
import { CoreValidator, TypeOf } from 'suretype'; | ||
import { Static, TSchema } from '@sinclair/typebox'; | ||
export type TSchemaLib<SchemaLibType> = SchemaLibType extends CoreValidator<unknown> ? TypeOf<SchemaLibType> : SchemaLibType extends TSchema ? Static<SchemaLibType> : unknown; | ||
export type TSchemaLib<SchemaLibType> = SchemaLibType extends CoreValidator<any> ? TypeOf<SchemaLibType> : SchemaLibType extends TSchema ? Static<SchemaLibType> : unknown; | ||
export type TJSONSchema = Record<string, any>; |
{ | ||
"name": "@archtx/procedures", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Procedure generator for @archtx", | ||
@@ -5,0 +5,0 @@ "main": "dist/exports.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
255060
1.5%