diff options
Diffstat (limited to 'node_modules/@terwer/typedoc-plugin-markdown/dist/resources/partials/type.some.js')
-rw-r--r-- | node_modules/@terwer/typedoc-plugin-markdown/dist/resources/partials/type.some.js | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/node_modules/@terwer/typedoc-plugin-markdown/dist/resources/partials/type.some.js b/node_modules/@terwer/typedoc-plugin-markdown/dist/resources/partials/type.some.js new file mode 100644 index 0000000..6a6372c --- /dev/null +++ b/node_modules/@terwer/typedoc-plugin-markdown/dist/resources/partials/type.some.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someType = void 0; +const typedoc_1 = require("typedoc"); +const els_1 = require("../../support/els"); +const utils_1 = require("../../support/utils"); +function someType(context, someType, collapse = 'none') { + if (!someType) { + return ''; + } + if (someType instanceof typedoc_1.ArrayType) { + return '' + context.partials.arrayType(someType); + } + if (someType instanceof typedoc_1.ConditionalType) { + return '' + context.partials.conditionalType(someType); + } + if (someType instanceof typedoc_1.IndexedAccessType) { + return '' + context.partials.indexAccessType(someType); + } + if (someType instanceof typedoc_1.InferredType) { + return '' + context.partials.inferredType(someType); + } + if (someType instanceof typedoc_1.IntersectionType && someType.types) { + return '' + context.partials.intersectionType(someType); + } + if (someType instanceof typedoc_1.IntrinsicType && someType.name) { + return '' + context.partials.intrinsicType(someType); + } + if (someType instanceof typedoc_1.QueryType) { + return '' + context.partials.queryType(someType); + } + if (someType instanceof typedoc_1.ReferenceType) { + return '' + context.partials.referenceType(someType); + } + if (someType instanceof typedoc_1.ReflectionType) { + return '' + context.partials.reflectionType(someType, collapse); + } + if (someType instanceof typedoc_1.TypeOperatorType) { + return '' + context.partials.typeOperatorType(someType); + } + if (someType instanceof typedoc_1.TupleType && someType.elements) { + return '' + context.partials.tupleType(someType); + } + if (someType instanceof typedoc_1.UnionType && someType.types) { + return '' + context.partials.unionType(someType); + } + if (someType instanceof typedoc_1.UnknownType) { + return '' + context.partials.unknownType(someType); + } + if (someType.toString() == 'null') { + return (0, els_1.backTicks)('null'); + } + return (0, utils_1.escapeChars)(someType === null || someType === void 0 ? void 0 : someType.toString()); +} +exports.someType = someType; |