UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

24 lines 857 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParenthesizedNodeParser = void 0; const typescript_1 = __importDefault(require("typescript")); class ParenthesizedNodeParser { constructor(childNodeParser) { this.childNodeParser = childNodeParser; } supportsNode(node) { return node.kind === typescript_1.default.SyntaxKind.ParenthesizedType; } createType(node, context) { const type = this.childNodeParser.createType(node.type, context); if (!type) { return undefined; } return type; } } exports.ParenthesizedNodeParser = ParenthesizedNodeParser; //# sourceMappingURL=ParenthesizedNodeParser.js.map