UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

16 lines (12 loc) 330 B
import { PrimitiveType } from "./PrimitiveType.js"; export class StringType extends PrimitiveType { constructor(protected preserveLiterals = false) { super(); } public getId(): string { return "string"; } public getPreserveLiterals(): boolean { return this.preserveLiterals; } }