UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

16 lines (12 loc) 302 B
import { BaseType } from "./BaseType.js"; export class ArrayType extends BaseType { public constructor(private item: BaseType) { super(); } public getId(): string { return `${this.item.getId()}[]`; } public getItem(): BaseType { return this.item; } }