UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

16 lines (12 loc) 302 B
import { BaseType } from "./BaseType"; 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; } }