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