json-schema-to-ts
Version:
Infer typescript types from your JSON schemas!
11 lines (10 loc) • 398 B
JavaScript
export { wrapCompilerAsTypeGuard, wrapValidatorAsTypeGuard, asConst } from "./utils";
/**
* Given a JSON schema defined with the `as const` statement, infers the type of valid instances
* @param SCHEMA JSON schema
*/
/**
* Given an extended JSON schema defined with the `as const` statement, infers the type of valid instances
* @param SCHEMA JSON schema
*/
//# sourceMappingURL=index.js.map