UNPKG

from-schema

Version:

Infer TypeScript types from JSON schemas

9 lines (7 loc) 255 B
import { ObjectJsonSchema } from './json'; import { SchemaBase } from './generic/SchemaBase'; export type HttpRoute = SchemaBase & { readonly request: ObjectJsonSchema; readonly response: ObjectJsonSchema; readonly authenticated: boolean; };