ts-json-schema-generator
Version:
Generate JSON schema from your Typescript sources
17 lines (15 loc) • 531 B
text/typescript
import { Definition } from "../Schema/Definition";
import { SubTypeFormatter } from "../SubTypeFormatter";
import { SymbolType } from "../Type/SymbolType";
import { BaseType } from "../Type/BaseType";
export class SymbolTypeFormatter implements SubTypeFormatter {
public supportsType(type: SymbolType): boolean {
return type instanceof SymbolType;
}
public getDefinition(type: SymbolType): Definition {
return {};
}
public getChildren(type: SymbolType): BaseType[] {
return [];
}
}