UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

19 lines (15 loc) 328 B
import { BaseType } from "./BaseType.js"; export class AliasType extends BaseType { public constructor( private id: string, private type: BaseType, ) { super(); } public getId(): string { return this.id; } public getType(): BaseType { return this.type; } }