TypeScript type definitions for JSON Schema specification draft-07. Current version 0.1.2, released sporadically. Generated from the official JSON Schema spec schema and refined. Provides precise types for JSON Schema objects, aiding validation and autocompletion. Key differentiator: focus on draft-07 with niche coverage; alternatives include @types/json-schema for broader draft support.
npm install json-schema-spec-typesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Define a JSON Schema object with TypeScript types from json-schema-spec-types.
Use 'import type' or skip runtime usage.
Consider using '@types/json-schema' for broader draft support.
Use either; consistency recommended.
Set 'esModuleInterop' to false if using CommonJS, or always use 'import type'.
Use 'import type { JSONSchema } from ...' or 'import type JSONSchema from ...'.Ensure import path is correct: 'json-schema-spec-types' and check case: 'JSONSchema' (note capital S).
JSONSchema is a type only; use it for type annotations, not runtime.
No dependency data recorded yet.