@alloy-js/typescript 0.23.0-dev.0 → 0.23.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/src/builtins/index.js +2 -0
- package/dist/dev/src/builtins/index.js.map +1 -0
- package/dist/dev/src/builtins/node.js +42 -0
- package/dist/dev/src/builtins/node.js.map +1 -0
- package/dist/dev/src/components/ArrayExpression.js +59 -0
- package/dist/dev/src/components/ArrayExpression.js.map +1 -0
- package/dist/dev/src/components/ArrowFunction.js +74 -0
- package/dist/dev/src/components/ArrowFunction.js.map +1 -0
- package/dist/dev/src/components/BarrelFile.js +87 -0
- package/dist/dev/src/components/BarrelFile.js.map +1 -0
- package/dist/dev/src/components/BlockScope.js +28 -0
- package/dist/dev/src/components/BlockScope.js.map +1 -0
- package/dist/dev/src/components/CallSignature.js +42 -0
- package/dist/dev/src/components/CallSignature.js.map +1 -0
- package/dist/dev/src/components/ClassDeclaration.js +279 -0
- package/dist/dev/src/components/ClassDeclaration.js.map +1 -0
- package/dist/dev/src/components/CommaList.js +21 -0
- package/dist/dev/src/components/CommaList.js.map +1 -0
- package/dist/dev/src/components/Declaration.js +60 -0
- package/dist/dev/src/components/Declaration.js.map +1 -0
- package/dist/dev/src/components/EnumDeclaration.js +96 -0
- package/dist/dev/src/components/EnumDeclaration.js.map +1 -0
- package/dist/dev/src/components/EnumMember.js +69 -0
- package/dist/dev/src/components/EnumMember.js.map +1 -0
- package/dist/dev/src/components/ExportStatement.js +18 -0
- package/dist/dev/src/components/ExportStatement.js.map +1 -0
- package/dist/dev/src/components/FunctionBase.js +364 -0
- package/dist/dev/src/components/FunctionBase.js.map +1 -0
- package/dist/dev/src/components/FunctionCallExpression.js +41 -0
- package/dist/dev/src/components/FunctionCallExpression.js.map +1 -0
- package/dist/dev/src/components/FunctionDeclaration.js +118 -0
- package/dist/dev/src/components/FunctionDeclaration.js.map +1 -0
- package/dist/dev/src/components/FunctionExpression.js +73 -0
- package/dist/dev/src/components/FunctionExpression.js.map +1 -0
- package/dist/dev/src/components/FunctionType.js +106 -0
- package/dist/dev/src/components/FunctionType.js.map +1 -0
- package/dist/dev/src/components/IfStatement.js +45 -0
- package/dist/dev/src/components/IfStatement.js.map +1 -0
- package/dist/dev/src/components/ImportStatement.js +142 -0
- package/dist/dev/src/components/ImportStatement.js.map +1 -0
- package/dist/dev/src/components/Interface.js +254 -0
- package/dist/dev/src/components/Interface.js.map +1 -0
- package/dist/dev/src/components/InterfaceMethod.js +120 -0
- package/dist/dev/src/components/InterfaceMethod.js.map +1 -0
- package/dist/dev/src/components/JSDoc.js +28 -0
- package/dist/dev/src/components/JSDoc.js.map +1 -0
- package/dist/dev/src/components/JSDocComment.js +27 -0
- package/dist/dev/src/components/JSDocComment.js.map +1 -0
- package/dist/dev/src/components/JSDocExample.js +44 -0
- package/dist/dev/src/components/JSDocExample.js.map +1 -0
- package/dist/dev/src/components/JSDocParam.js +175 -0
- package/dist/dev/src/components/JSDocParam.js.map +1 -0
- package/dist/dev/src/components/LexicalScope.js +29 -0
- package/dist/dev/src/components/LexicalScope.js.map +1 -0
- package/dist/dev/src/components/MemberDeclaration.js +29 -0
- package/dist/dev/src/components/MemberDeclaration.js.map +1 -0
- package/dist/dev/src/components/MemberExpression.js +284 -0
- package/dist/dev/src/components/MemberExpression.js.map +1 -0
- package/dist/dev/src/components/MemberScope.js +26 -0
- package/dist/dev/src/components/MemberScope.js.map +1 -0
- package/dist/dev/src/components/NewExpression.js +17 -0
- package/dist/dev/src/components/NewExpression.js.map +1 -0
- package/dist/dev/src/components/ObjectExpression.js +179 -0
- package/dist/dev/src/components/ObjectExpression.js.map +1 -0
- package/dist/dev/src/components/PackageDirectory.js +108 -0
- package/dist/dev/src/components/PackageDirectory.js.map +1 -0
- package/dist/dev/src/components/PackageJson.js +78 -0
- package/dist/dev/src/components/PackageJson.js.map +1 -0
- package/dist/dev/src/components/PropertyName.js +37 -0
- package/dist/dev/src/components/PropertyName.js.map +1 -0
- package/dist/dev/src/components/Reference.js +17 -0
- package/dist/dev/src/components/Reference.js.map +1 -0
- package/dist/dev/src/components/SingleLineCommentBlock.js +27 -0
- package/dist/dev/src/components/SingleLineCommentBlock.js.map +1 -0
- package/dist/dev/src/components/SourceFile.js +150 -0
- package/dist/dev/src/components/SourceFile.js.map +1 -0
- package/dist/dev/src/components/SwitchStatement.js +74 -0
- package/dist/dev/src/components/SwitchStatement.js.map +1 -0
- package/dist/dev/src/components/TryStatement.js +128 -0
- package/dist/dev/src/components/TryStatement.js.map +1 -0
- package/dist/dev/src/components/TryStatement.test.js +181 -0
- package/dist/dev/src/components/TryStatement.test.js.map +1 -0
- package/dist/dev/src/components/TsConfigJson.js +62 -0
- package/dist/dev/src/components/TsConfigJson.js.map +1 -0
- package/dist/dev/src/components/TypeDeclaration.js +46 -0
- package/dist/dev/src/components/TypeDeclaration.js.map +1 -0
- package/dist/dev/src/components/TypeRefContext.js +58 -0
- package/dist/dev/src/components/TypeRefContext.js.map +1 -0
- package/dist/dev/src/components/ValueExpression.js +42 -0
- package/dist/dev/src/components/ValueExpression.js.map +1 -0
- package/dist/dev/src/components/VarDeclaration.js +107 -0
- package/dist/dev/src/components/VarDeclaration.js.map +1 -0
- package/dist/dev/src/components/index.js +40 -0
- package/dist/dev/src/components/index.js.map +1 -0
- package/dist/dev/src/components/interface/expression.test.js +217 -0
- package/dist/dev/src/components/interface/expression.test.js.map +1 -0
- package/dist/dev/src/components/stc/index.js +48 -0
- package/dist/dev/src/components/stc/index.js.map +1 -0
- package/dist/dev/src/context/index.js +3 -0
- package/dist/dev/src/context/index.js.map +1 -0
- package/dist/dev/src/context/package-metadata.js +3 -0
- package/dist/dev/src/context/package-metadata.js.map +1 -0
- package/dist/dev/src/context/type-ref-context.js +13 -0
- package/dist/dev/src/context/type-ref-context.js.map +1 -0
- package/dist/dev/src/create-package.js +178 -0
- package/dist/dev/src/create-package.js.map +1 -0
- package/dist/dev/src/index.js +10 -0
- package/dist/dev/src/index.js.map +1 -0
- package/dist/dev/src/name-conflict-resolver.js +21 -0
- package/dist/dev/src/name-conflict-resolver.js.map +1 -0
- package/dist/dev/src/name-policy.js +52 -0
- package/dist/dev/src/name-policy.js.map +1 -0
- package/dist/dev/src/parameter-descriptor.js +2 -0
- package/dist/dev/src/parameter-descriptor.js.map +1 -0
- package/dist/dev/src/source-directory-data.js +13 -0
- package/dist/dev/src/source-directory-data.js.map +1 -0
- package/dist/dev/src/symbols/index.js +151 -0
- package/dist/dev/src/symbols/index.js.map +1 -0
- package/dist/dev/src/symbols/reference.js +155 -0
- package/dist/dev/src/symbols/reference.js.map +1 -0
- package/dist/dev/src/symbols/scopes.js +31 -0
- package/dist/dev/src/symbols/scopes.js.map +1 -0
- package/dist/dev/src/symbols/ts-lexical-scope.js +17 -0
- package/dist/dev/src/symbols/ts-lexical-scope.js.map +1 -0
- package/dist/dev/src/symbols/ts-member-scope.js +19 -0
- package/dist/dev/src/symbols/ts-member-scope.js.map +1 -0
- package/dist/dev/src/symbols/ts-module-scope.js +137 -0
- package/dist/dev/src/symbols/ts-module-scope.js.map +1 -0
- package/dist/dev/src/symbols/ts-output-symbol.js +144 -0
- package/dist/dev/src/symbols/ts-output-symbol.js.map +1 -0
- package/dist/dev/src/symbols/ts-package-scope.js +90 -0
- package/dist/dev/src/symbols/ts-package-scope.js.map +1 -0
- package/dist/dev/src/utils.js +46 -0
- package/dist/dev/src/utils.js.map +1 -0
- package/dist/dev/test/array.test.js +158 -0
- package/dist/dev/test/array.test.js.map +1 -0
- package/dist/dev/test/arrow-function.test.js +308 -0
- package/dist/dev/test/arrow-function.test.js.map +1 -0
- package/dist/dev/test/barrel.test.js +115 -0
- package/dist/dev/test/barrel.test.js.map +1 -0
- package/dist/dev/test/basic.test.js +131 -0
- package/dist/dev/test/basic.test.js.map +1 -0
- package/dist/dev/test/block-scope.test.js +51 -0
- package/dist/dev/test/block-scope.test.js.map +1 -0
- package/dist/dev/test/class.test.js +940 -0
- package/dist/dev/test/class.test.js.map +1 -0
- package/dist/dev/test/decl-helpers.test.js +217 -0
- package/dist/dev/test/decl-helpers.test.js.map +1 -0
- package/dist/dev/test/enum-jsdoc.test.js +133 -0
- package/dist/dev/test/enum-jsdoc.test.js.map +1 -0
- package/dist/dev/test/enum.test.js +461 -0
- package/dist/dev/test/enum.test.js.map +1 -0
- package/dist/dev/test/externals.test.js +493 -0
- package/dist/dev/test/externals.test.js.map +1 -0
- package/dist/dev/test/function-call-expression.test.js +144 -0
- package/dist/dev/test/function-call-expression.test.js.map +1 -0
- package/dist/dev/test/function-declaration-jsdoc.test.js +128 -0
- package/dist/dev/test/function-declaration-jsdoc.test.js.map +1 -0
- package/dist/dev/test/function-declaration.test.js +671 -0
- package/dist/dev/test/function-declaration.test.js.map +1 -0
- package/dist/dev/test/function-expression.test.js +308 -0
- package/dist/dev/test/function-expression.test.js.map +1 -0
- package/dist/dev/test/function-type.test.js +201 -0
- package/dist/dev/test/function-type.test.js.map +1 -0
- package/dist/dev/test/if-statement.test.js +38 -0
- package/dist/dev/test/if-statement.test.js.map +1 -0
- package/dist/dev/test/imports-reactive.test.js +223 -0
- package/dist/dev/test/imports-reactive.test.js.map +1 -0
- package/dist/dev/test/imports.test.js +1673 -0
- package/dist/dev/test/imports.test.js.map +1 -0
- package/dist/dev/test/interface-jsdoc.test.js +267 -0
- package/dist/dev/test/interface-jsdoc.test.js.map +1 -0
- package/dist/dev/test/interface.test.js +986 -0
- package/dist/dev/test/interface.test.js.map +1 -0
- package/dist/dev/test/jscomment.test.js +123 -0
- package/dist/dev/test/jscomment.test.js.map +1 -0
- package/dist/dev/test/jsdoc.test.js +203 -0
- package/dist/dev/test/jsdoc.test.js.map +1 -0
- package/dist/dev/test/jsdocparam.test.js +237 -0
- package/dist/dev/test/jsdocparam.test.js.map +1 -0
- package/dist/dev/test/member-expression.test.js +2021 -0
- package/dist/dev/test/member-expression.test.js.map +1 -0
- package/dist/dev/test/name-conflict.test.js +119 -0
- package/dist/dev/test/name-conflict.test.js.map +1 -0
- package/dist/dev/test/name-policy.test.js +215 -0
- package/dist/dev/test/name-policy.test.js.map +1 -0
- package/dist/dev/test/new-expression.test.js +100 -0
- package/dist/dev/test/new-expression.test.js.map +1 -0
- package/dist/dev/test/object.test.js +167 -0
- package/dist/dev/test/object.test.js.map +1 -0
- package/dist/dev/test/package-external.test.js +281 -0
- package/dist/dev/test/package-external.test.js.map +1 -0
- package/dist/dev/test/package-json.test.js +113 -0
- package/dist/dev/test/package-json.test.js.map +1 -0
- package/dist/dev/test/package.test.js +188 -0
- package/dist/dev/test/package.test.js.map +1 -0
- package/dist/dev/test/reference.test.js +141 -0
- package/dist/dev/test/reference.test.js.map +1 -0
- package/dist/dev/test/source-file.test.js +50 -0
- package/dist/dev/test/source-file.test.js.map +1 -0
- package/dist/dev/test/switch-statement.test.js +94 -0
- package/dist/dev/test/switch-statement.test.js.map +1 -0
- package/dist/dev/test/utils.js +77 -0
- package/dist/dev/test/utils.js.map +1 -0
- package/dist/dev/test/value-expression.test.js +35 -0
- package/dist/dev/test/value-expression.test.js.map +1 -0
- package/dist/dev/test/values.test.js +618 -0
- package/dist/dev/test/values.test.js.map +1 -0
- package/dist/dev/test/var-declaration-jsdoc.test.js +63 -0
- package/dist/dev/test/var-declaration-jsdoc.test.js.map +1 -0
- package/dist/dev/test/var-declaration.test.js +395 -0
- package/dist/dev/test/var-declaration.test.js.map +1 -0
- package/dist/dev/test/vitest.setup.js +2 -0
- package/dist/dev/test/vitest.setup.js.map +1 -0
- package/dist/dev/testing/create-wrapper.js +12 -0
- package/dist/dev/testing/create-wrapper.js.map +1 -0
- package/dist/dev/testing/create-wrapper.test.js +231 -0
- package/dist/dev/testing/create-wrapper.test.js.map +1 -0
- package/dist/dev/testing/index.js +2 -0
- package/dist/dev/testing/index.js.map +1 -0
- package/dist/src/components/FunctionBase.js +1 -5
- package/dist/src/components/FunctionBase.js.map +1 -1
- package/dist/src/components/FunctionType.d.ts +1 -1
- package/dist/src/components/FunctionType.js +1 -1
- package/dist/src/components/FunctionType.js.map +1 -1
- package/dist/src/components/IfStatement.d.ts.map +1 -1
- package/dist/src/components/IfStatement.js +2 -3
- package/dist/src/components/IfStatement.js.map +1 -1
- package/dist/src/components/ImportStatement.d.ts.map +1 -1
- package/dist/src/components/ImportStatement.js +16 -8
- package/dist/src/components/ImportStatement.js.map +1 -1
- package/dist/src/components/Interface.d.ts +1 -1
- package/dist/src/components/Interface.d.ts.map +1 -1
- package/dist/src/components/Interface.js +24 -9
- package/dist/src/components/Interface.js.map +1 -1
- package/dist/src/components/MemberExpression.d.ts +1 -1
- package/dist/src/components/MemberExpression.d.ts.map +1 -1
- package/dist/src/components/MemberExpression.js +115 -330
- package/dist/src/components/MemberExpression.js.map +1 -1
- package/dist/src/components/MemberScope.d.ts.map +1 -1
- package/dist/src/components/MemberScope.js +6 -2
- package/dist/src/components/MemberScope.js.map +1 -1
- package/dist/src/components/PackageDirectory.d.ts.map +1 -1
- package/dist/src/components/PackageDirectory.js +2 -2
- package/dist/src/components/PackageDirectory.js.map +1 -1
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js +4 -2
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/components/TryStatement.d.ts +80 -0
- package/dist/src/components/TryStatement.d.ts.map +1 -0
- package/dist/src/components/TryStatement.js +112 -0
- package/dist/src/components/TryStatement.js.map +1 -0
- package/dist/src/components/TryStatement.test.d.ts +2 -0
- package/dist/src/components/TryStatement.test.d.ts.map +1 -0
- package/dist/src/components/TryStatement.test.js +121 -0
- package/dist/src/components/TryStatement.test.js.map +1 -0
- package/dist/src/components/TsConfigJson.d.ts.map +1 -1
- package/dist/src/components/TsConfigJson.js +5 -0
- package/dist/src/components/TsConfigJson.js.map +1 -1
- package/dist/src/components/TypeDeclaration.d.ts +1 -1
- package/dist/src/components/TypeDeclaration.d.ts.map +1 -1
- package/dist/src/components/TypeDeclaration.js +1 -1
- package/dist/src/components/TypeDeclaration.js.map +1 -1
- package/dist/src/components/TypeRefContext.d.ts +1 -1
- package/dist/src/components/TypeRefContext.d.ts.map +1 -1
- package/dist/src/components/TypeRefContext.js +1 -1
- package/dist/src/components/TypeRefContext.js.map +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -0
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/context/type-ref-context.d.ts.map +1 -1
- package/dist/src/context/type-ref-context.js +2 -2
- package/dist/src/context/type-ref-context.js.map +1 -1
- package/dist/src/create-package.d.ts.map +1 -1
- package/dist/src/create-package.js +7 -6
- package/dist/src/create-package.js.map +1 -1
- package/dist/src/name-conflict-resolver.d.ts +2 -2
- package/dist/src/name-conflict-resolver.d.ts.map +1 -1
- package/dist/src/name-conflict-resolver.js +8 -2
- package/dist/src/name-conflict-resolver.js.map +1 -1
- package/dist/src/symbols/index.d.ts.map +1 -1
- package/dist/src/symbols/index.js +53 -11
- package/dist/src/symbols/index.js.map +1 -1
- package/dist/src/symbols/reference.d.ts.map +1 -1
- package/dist/src/symbols/reference.js +13 -3
- package/dist/src/symbols/reference.js.map +1 -1
- package/dist/src/symbols/ts-module-scope.d.ts +8 -0
- package/dist/src/symbols/ts-module-scope.d.ts.map +1 -1
- package/dist/src/symbols/ts-module-scope.js +80 -5
- package/dist/src/symbols/ts-module-scope.js.map +1 -1
- package/dist/src/symbols/ts-output-symbol.d.ts +1 -0
- package/dist/src/symbols/ts-output-symbol.d.ts.map +1 -1
- package/dist/src/symbols/ts-output-symbol.js +20 -3
- package/dist/src/symbols/ts-output-symbol.js.map +1 -1
- package/dist/src/symbols/ts-package-scope.d.ts +1 -0
- package/dist/src/symbols/ts-package-scope.d.ts.map +1 -1
- package/dist/src/symbols/ts-package-scope.js +8 -0
- package/dist/src/symbols/ts-package-scope.js.map +1 -1
- package/dist/test/externals.test.js +5 -1
- package/dist/test/externals.test.js.map +1 -1
- package/dist/test/function-declaration.test.js +42 -0
- package/dist/test/function-declaration.test.js.map +1 -1
- package/dist/test/imports-reactive.test.d.ts +2 -0
- package/dist/test/imports-reactive.test.d.ts.map +1 -0
- package/dist/test/imports-reactive.test.js +167 -0
- package/dist/test/imports-reactive.test.js.map +1 -0
- package/dist/test/imports.test.js +121 -3
- package/dist/test/imports.test.js.map +1 -1
- package/dist/test/name-conflict.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/ArrowFunction.md +71 -0
- package/docs/api/components/BarrelFile.md +58 -0
- package/docs/api/components/BlockScope.md +97 -0
- package/docs/api/components/CallSignature.md +45 -0
- package/docs/api/components/CaseClause.md +102 -0
- package/docs/api/components/CatchClause.md +50 -0
- package/docs/api/components/ClassDeclaration.md +61 -0
- package/docs/api/components/ClassField.md +63 -0
- package/docs/api/components/ClassMember.md +56 -0
- package/docs/api/components/ClassMethod.md +75 -0
- package/docs/api/components/CommaList.md +31 -0
- package/docs/api/components/Declaration.md +87 -0
- package/docs/api/components/ElseClause.md +29 -0
- package/docs/api/components/ElseIfClause.md +30 -0
- package/docs/api/components/EnumDeclaration.md +29 -0
- package/docs/api/components/EnumMember.md +46 -0
- package/docs/api/components/ExportStatement.md +26 -0
- package/docs/api/components/FinallyClause.md +50 -0
- package/docs/api/components/FunctionCallExpression.md +29 -0
- package/docs/api/components/FunctionDeclaration.md +57 -0
- package/docs/api/components/FunctionExpression.md +71 -0
- package/docs/api/components/IfStatement.md +30 -0
- package/docs/api/components/ImportStatement.md +29 -0
- package/docs/api/components/ImportStatements.md +25 -0
- package/docs/api/components/InterfaceDeclaration.md +38 -0
- package/docs/api/components/InterfaceMember.md +99 -0
- package/docs/api/components/InterfaceMethod.md +74 -0
- package/docs/api/components/JSDoc.md +29 -0
- package/docs/api/components/JSDocComment.md +29 -0
- package/docs/api/components/JSDocExample.md +31 -0
- package/docs/api/components/MemberExpression.md +58 -0
- package/docs/api/components/NewExpression.md +26 -0
- package/docs/api/components/ObjectExpression.md +32 -0
- package/docs/api/components/ObjectProperty.md +44 -0
- package/docs/api/components/ObjectSpreadProperty.md +29 -0
- package/docs/api/components/PackageDirectory.md +102 -0
- package/docs/api/components/PackageJsonFile.md +82 -0
- package/docs/api/components/Reference.md +26 -0
- package/docs/api/components/SingleLineCommentBlock.md +29 -0
- package/docs/api/components/SourceFile.md +41 -0
- package/docs/api/components/SwitchStatement.md +30 -0
- package/docs/api/components/TSConfigJson.md +25 -0
- package/docs/api/components/TryStatement.md +50 -0
- package/docs/api/components/TypeRefContext.md +35 -0
- package/docs/api/components/ValueExpression.md +25 -0
- package/docs/api/components/VarDeclaration.md +44 -0
- package/docs/api/components/ensureTypeRefContext.md +28 -0
- package/docs/api/components/index.md +49 -0
- package/docs/api/contexts/Package-context.md +21 -0
- package/docs/api/contexts/PackageMetadata-context.md +18 -0
- package/docs/api/contexts/SourceFile-context.md +20 -0
- package/docs/api/contexts/index.md +5 -0
- package/docs/api/functions/createInstanceMemberSymbol.md +38 -0
- package/docs/api/functions/createLexicalScope.md +27 -0
- package/docs/api/functions/createMemberScope.md +28 -0
- package/docs/api/functions/createMemberSymbol.md +42 -0
- package/docs/api/functions/createPackage.md +18 -0
- package/docs/api/functions/createPrivateInstanceMemberSymbol.md +38 -0
- package/docs/api/functions/createPrivateStaticMemberSymbol.md +38 -0
- package/docs/api/functions/createStaticMemberSymbol.md +38 -0
- package/docs/api/functions/createTSNamePolicy.md +17 -0
- package/docs/api/functions/createTransientValueSymbol.md +17 -0
- package/docs/api/functions/createTypeAndValueSymbol.md +38 -0
- package/docs/api/functions/createTypeSymbol.md +38 -0
- package/docs/api/functions/createValueSymbol.md +38 -0
- package/docs/api/functions/decl.md +38 -0
- package/docs/api/functions/declMember.md +42 -0
- package/docs/api/functions/declType.md +38 -0
- package/docs/api/functions/getPackageScope.md +20 -0
- package/docs/api/functions/getSourceDirectoryData.md +18 -0
- package/docs/api/functions/index.md +27 -0
- package/docs/api/functions/ref.md +25 -0
- package/docs/api/functions/tsNameConflictResolver.md +19 -0
- package/docs/api/functions/useTSLexicalScope.md +17 -0
- package/docs/api/functions/useTSLexicalScopeIfPresent.md +17 -0
- package/docs/api/functions/useTSMemberScope.md +17 -0
- package/docs/api/functions/useTSNamePolicy.md +17 -0
- package/docs/api/functions/useTSScope.md +17 -0
- package/docs/api/index.md +7 -0
- package/docs/api/types/AddImportOptions.md +7 -0
- package/docs/api/types/BlockScopeProps.md +5 -0
- package/docs/api/types/CaseClauseProps.md +5 -0
- package/docs/api/types/CaseClausePropsBase.md +9 -0
- package/docs/api/types/CommonDeclarationProps.md +7 -0
- package/docs/api/types/CreatePackageProps.md +12 -0
- package/docs/api/types/CreateTsSymbolOptions.md +12 -0
- package/docs/api/types/DeclarationProps.md +5 -0
- package/docs/api/types/DeclarationPropsBase.md +8 -0
- package/docs/api/types/ExportConditions.md +7 -0
- package/docs/api/types/ExportPath.md +5 -0
- package/docs/api/types/ExternalPackage.md +7 -0
- package/docs/api/types/FunctionBodyProps.md +7 -0
- package/docs/api/types/FunctionParametersProps.md +10 -0
- package/docs/api/types/FunctionTypeParameterDescriptor.md +10 -0
- package/docs/api/types/FunctionTypeParametersProps.md +10 -0
- package/docs/api/types/FunctionTypeProps.md +13 -0
- package/docs/api/types/ImportRecords.md +5 -0
- package/docs/api/types/ImportedSymbol.md +8 -0
- package/docs/api/types/InterfaceExpressionProps.md +7 -0
- package/docs/api/types/InterfaceMemberProps.md +5 -0
- package/docs/api/types/InterfaceMemberPropsBase.md +11 -0
- package/docs/api/types/MemberExpressionPartProps.md +15 -0
- package/docs/api/types/ModuleExports.md +18 -0
- package/docs/api/types/ModuleSymbolsDescriptor.md +10 -0
- package/docs/api/types/NamedMap.md +18 -0
- package/docs/api/types/NamedModuleDescriptor.md +17 -0
- package/docs/api/types/PackageDescriptor.md +7 -0
- package/docs/api/types/PackageExports.md +7 -0
- package/docs/api/types/PackageRefkeys.md +10 -0
- package/docs/api/types/ParameterDescriptor.md +11 -0
- package/docs/api/types/ParameterDescriptorBase.md +16 -0
- package/docs/api/types/RefOptions.md +7 -0
- package/docs/api/types/SourceDirectoryData.md +7 -0
- package/docs/api/types/SourceFileHeaderProps.md +8 -0
- package/docs/api/types/TSLexicalScope.md +13 -0
- package/docs/api/types/TSMemberScope.md +14 -0
- package/docs/api/types/TSModuleScope.md +17 -0
- package/docs/api/types/TSOutputScope.md +5 -0
- package/docs/api/types/TSOutputSymbol.md +28 -0
- package/docs/api/types/TSPackageScope.md +21 -0
- package/docs/api/types/TSPackageScopeOptions.md +9 -0
- package/docs/api/types/TypeDeclarationProps.md +8 -0
- package/docs/api/types/TypeParameterDescriptor.md +13 -0
- package/docs/api/types/TypeScriptElements.md +5 -0
- package/docs/api/types/index.md +47 -0
- package/docs/api/variables/FunctionType.md +24 -0
- package/docs/api/variables/InterfaceExpression.md +5 -0
- package/docs/api/variables/TSSymbolFlags.md +5 -0
- package/docs/api/variables/TypeDeclaration.md +5 -0
- package/docs/api/variables/index.md +6 -0
- package/package.json +14 -6
- package/src/components/FunctionBase.tsx +1 -1
- package/src/components/FunctionType.tsx +1 -1
- package/src/components/IfStatement.tsx +3 -3
- package/src/components/ImportStatement.tsx +26 -12
- package/src/components/Interface.tsx +58 -29
- package/src/components/MemberExpression.tsx +194 -454
- package/src/components/MemberScope.tsx +13 -3
- package/src/components/PackageDirectory.tsx +2 -1
- package/src/components/SourceFile.tsx +4 -1
- package/src/components/TryStatement.test.tsx +123 -0
- package/src/components/TryStatement.tsx +141 -0
- package/src/components/TsConfigJson.tsx +18 -9
- package/src/components/TypeDeclaration.tsx +15 -15
- package/src/components/TypeRefContext.tsx +2 -2
- package/src/components/index.ts +1 -0
- package/src/context/type-ref-context.tsx +6 -2
- package/src/create-package.ts +29 -15
- package/src/name-conflict-resolver.ts +12 -8
- package/src/symbols/index.ts +51 -10
- package/src/symbols/reference.tsx +17 -6
- package/src/symbols/ts-module-scope.ts +115 -11
- package/src/symbols/ts-output-symbol.ts +21 -2
- package/src/symbols/ts-package-scope.ts +9 -0
- package/temp/api.json +547 -73
- package/test/externals.test.tsx +5 -1
- package/test/function-declaration.test.tsx +36 -0
- package/test/imports-reactive.test.tsx +128 -0
- package/test/imports.test.tsx +136 -2
- package/test/name-conflict.test.tsx +4 -4
- package/vitest.config.ts +8 -0
package/temp/api.json
CHANGED
|
@@ -1597,6 +1597,131 @@
|
|
|
1597
1597
|
}
|
|
1598
1598
|
]
|
|
1599
1599
|
},
|
|
1600
|
+
{
|
|
1601
|
+
"kind": "Function",
|
|
1602
|
+
"canonicalReference": "@alloy-js/typescript!CatchClause:function(1)",
|
|
1603
|
+
"docComment": "/**\n * A catch clause of a try statement.\n *\n * @remarks\n *\n *\n * The parameter can be omitted for a catch-all clause, or provided as a string\n * or {@link ParameterDescriptor}. When using a descriptor, a refkey can be provided\n * to reference the parameter within the catch block. Note that TypeScript only allows\n * `any` or `unknown` as catch parameter types.\n *\n * @example\n * ```tsx\n * <CatchClause parameter={{ name: \"error\", type: \"unknown\" }}>\n * console.error(error);\n * </CatchClause>\n * ```\n *\n * renders to\n * ```ts\n * catch (error: unknown) {\n * console.error(error);\n * }\n * ```\n *\n */\n",
|
|
1604
|
+
"excerptTokens": [
|
|
1605
|
+
{
|
|
1606
|
+
"kind": "Content",
|
|
1607
|
+
"text": "export declare function CatchClause(props: "
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"kind": "Reference",
|
|
1611
|
+
"text": "CatchClauseProps",
|
|
1612
|
+
"canonicalReference": "@alloy-js/typescript!CatchClauseProps:interface"
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"kind": "Content",
|
|
1616
|
+
"text": "): "
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"kind": "Reference",
|
|
1620
|
+
"text": "Children",
|
|
1621
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"kind": "Content",
|
|
1625
|
+
"text": ";"
|
|
1626
|
+
}
|
|
1627
|
+
],
|
|
1628
|
+
"fileUrlPath": "src/components/TryStatement.tsx",
|
|
1629
|
+
"returnTypeTokenRange": {
|
|
1630
|
+
"startIndex": 3,
|
|
1631
|
+
"endIndex": 4
|
|
1632
|
+
},
|
|
1633
|
+
"releaseTag": "Public",
|
|
1634
|
+
"overloadIndex": 1,
|
|
1635
|
+
"parameters": [
|
|
1636
|
+
{
|
|
1637
|
+
"parameterName": "props",
|
|
1638
|
+
"parameterTypeTokenRange": {
|
|
1639
|
+
"startIndex": 1,
|
|
1640
|
+
"endIndex": 2
|
|
1641
|
+
},
|
|
1642
|
+
"isOptional": false
|
|
1643
|
+
}
|
|
1644
|
+
],
|
|
1645
|
+
"name": "CatchClause"
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
"kind": "Interface",
|
|
1649
|
+
"canonicalReference": "@alloy-js/typescript!CatchClauseProps:interface",
|
|
1650
|
+
"docComment": "",
|
|
1651
|
+
"excerptTokens": [
|
|
1652
|
+
{
|
|
1653
|
+
"kind": "Content",
|
|
1654
|
+
"text": "export interface CatchClauseProps "
|
|
1655
|
+
}
|
|
1656
|
+
],
|
|
1657
|
+
"fileUrlPath": "src/components/TryStatement.tsx",
|
|
1658
|
+
"releaseTag": "Public",
|
|
1659
|
+
"name": "CatchClauseProps",
|
|
1660
|
+
"preserveMemberOrder": false,
|
|
1661
|
+
"members": [
|
|
1662
|
+
{
|
|
1663
|
+
"kind": "PropertySignature",
|
|
1664
|
+
"canonicalReference": "@alloy-js/typescript!CatchClauseProps#children:member",
|
|
1665
|
+
"docComment": "",
|
|
1666
|
+
"excerptTokens": [
|
|
1667
|
+
{
|
|
1668
|
+
"kind": "Content",
|
|
1669
|
+
"text": "children: "
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"kind": "Reference",
|
|
1673
|
+
"text": "Children",
|
|
1674
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"kind": "Content",
|
|
1678
|
+
"text": ";"
|
|
1679
|
+
}
|
|
1680
|
+
],
|
|
1681
|
+
"isReadonly": false,
|
|
1682
|
+
"isOptional": false,
|
|
1683
|
+
"releaseTag": "Public",
|
|
1684
|
+
"name": "children",
|
|
1685
|
+
"propertyTypeTokenRange": {
|
|
1686
|
+
"startIndex": 1,
|
|
1687
|
+
"endIndex": 2
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"kind": "PropertySignature",
|
|
1692
|
+
"canonicalReference": "@alloy-js/typescript!CatchClauseProps#parameter:member",
|
|
1693
|
+
"docComment": "",
|
|
1694
|
+
"excerptTokens": [
|
|
1695
|
+
{
|
|
1696
|
+
"kind": "Content",
|
|
1697
|
+
"text": "parameter?: "
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"kind": "Reference",
|
|
1701
|
+
"text": "ParameterDescriptor",
|
|
1702
|
+
"canonicalReference": "@alloy-js/typescript!ParameterDescriptor:interface"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"kind": "Content",
|
|
1706
|
+
"text": " | string"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"kind": "Content",
|
|
1710
|
+
"text": ";"
|
|
1711
|
+
}
|
|
1712
|
+
],
|
|
1713
|
+
"isReadonly": false,
|
|
1714
|
+
"isOptional": true,
|
|
1715
|
+
"releaseTag": "Public",
|
|
1716
|
+
"name": "parameter",
|
|
1717
|
+
"propertyTypeTokenRange": {
|
|
1718
|
+
"startIndex": 1,
|
|
1719
|
+
"endIndex": 3
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
],
|
|
1723
|
+
"extendsTokenRanges": []
|
|
1724
|
+
},
|
|
1600
1725
|
{
|
|
1601
1726
|
"kind": "Function",
|
|
1602
1727
|
"canonicalReference": "@alloy-js/typescript!ClassDeclaration:function(1)",
|
|
@@ -4661,13 +4786,13 @@
|
|
|
4661
4786
|
"text": "): "
|
|
4662
4787
|
},
|
|
4663
4788
|
{
|
|
4664
|
-
"kind": "
|
|
4665
|
-
"text": "
|
|
4789
|
+
"kind": "Reference",
|
|
4790
|
+
"text": "Component",
|
|
4791
|
+
"canonicalReference": "@alloy-js/core!Component:interface"
|
|
4666
4792
|
},
|
|
4667
4793
|
{
|
|
4668
|
-
"kind": "
|
|
4669
|
-
"text": "
|
|
4670
|
-
"canonicalReference": "@alloy-js/core!Children:type"
|
|
4794
|
+
"kind": "Content",
|
|
4795
|
+
"text": "<TProps>"
|
|
4671
4796
|
},
|
|
4672
4797
|
{
|
|
4673
4798
|
"kind": "Content",
|
|
@@ -5337,6 +5462,99 @@
|
|
|
5337
5462
|
],
|
|
5338
5463
|
"extendsTokenRanges": []
|
|
5339
5464
|
},
|
|
5465
|
+
{
|
|
5466
|
+
"kind": "Function",
|
|
5467
|
+
"canonicalReference": "@alloy-js/typescript!FinallyClause:function(1)",
|
|
5468
|
+
"docComment": "/**\n * A finally clause of a try statement.\n *\n * @example\n * ```tsx\n * <TryStatement>\n * // risky operation\n * </TryStatement>\n * <FinallyClause>\n * // cleanup\n * </FinallyClause>\n * ```\n *\n * renders to\n * ```ts\n * try {\n * // risky operation\n * } finally {\n * // cleanup\n * }\n * ```\n *\n */\n",
|
|
5469
|
+
"excerptTokens": [
|
|
5470
|
+
{
|
|
5471
|
+
"kind": "Content",
|
|
5472
|
+
"text": "export declare function FinallyClause(props: "
|
|
5473
|
+
},
|
|
5474
|
+
{
|
|
5475
|
+
"kind": "Reference",
|
|
5476
|
+
"text": "FinallyClauseProps",
|
|
5477
|
+
"canonicalReference": "@alloy-js/typescript!FinallyClauseProps:interface"
|
|
5478
|
+
},
|
|
5479
|
+
{
|
|
5480
|
+
"kind": "Content",
|
|
5481
|
+
"text": "): "
|
|
5482
|
+
},
|
|
5483
|
+
{
|
|
5484
|
+
"kind": "Reference",
|
|
5485
|
+
"text": "Children",
|
|
5486
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
5487
|
+
},
|
|
5488
|
+
{
|
|
5489
|
+
"kind": "Content",
|
|
5490
|
+
"text": ";"
|
|
5491
|
+
}
|
|
5492
|
+
],
|
|
5493
|
+
"fileUrlPath": "src/components/TryStatement.tsx",
|
|
5494
|
+
"returnTypeTokenRange": {
|
|
5495
|
+
"startIndex": 3,
|
|
5496
|
+
"endIndex": 4
|
|
5497
|
+
},
|
|
5498
|
+
"releaseTag": "Public",
|
|
5499
|
+
"overloadIndex": 1,
|
|
5500
|
+
"parameters": [
|
|
5501
|
+
{
|
|
5502
|
+
"parameterName": "props",
|
|
5503
|
+
"parameterTypeTokenRange": {
|
|
5504
|
+
"startIndex": 1,
|
|
5505
|
+
"endIndex": 2
|
|
5506
|
+
},
|
|
5507
|
+
"isOptional": false
|
|
5508
|
+
}
|
|
5509
|
+
],
|
|
5510
|
+
"name": "FinallyClause"
|
|
5511
|
+
},
|
|
5512
|
+
{
|
|
5513
|
+
"kind": "Interface",
|
|
5514
|
+
"canonicalReference": "@alloy-js/typescript!FinallyClauseProps:interface",
|
|
5515
|
+
"docComment": "",
|
|
5516
|
+
"excerptTokens": [
|
|
5517
|
+
{
|
|
5518
|
+
"kind": "Content",
|
|
5519
|
+
"text": "export interface FinallyClauseProps "
|
|
5520
|
+
}
|
|
5521
|
+
],
|
|
5522
|
+
"fileUrlPath": "src/components/TryStatement.tsx",
|
|
5523
|
+
"releaseTag": "Public",
|
|
5524
|
+
"name": "FinallyClauseProps",
|
|
5525
|
+
"preserveMemberOrder": false,
|
|
5526
|
+
"members": [
|
|
5527
|
+
{
|
|
5528
|
+
"kind": "PropertySignature",
|
|
5529
|
+
"canonicalReference": "@alloy-js/typescript!FinallyClauseProps#children:member",
|
|
5530
|
+
"docComment": "",
|
|
5531
|
+
"excerptTokens": [
|
|
5532
|
+
{
|
|
5533
|
+
"kind": "Content",
|
|
5534
|
+
"text": "children: "
|
|
5535
|
+
},
|
|
5536
|
+
{
|
|
5537
|
+
"kind": "Reference",
|
|
5538
|
+
"text": "Children",
|
|
5539
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
5540
|
+
},
|
|
5541
|
+
{
|
|
5542
|
+
"kind": "Content",
|
|
5543
|
+
"text": ";"
|
|
5544
|
+
}
|
|
5545
|
+
],
|
|
5546
|
+
"isReadonly": false,
|
|
5547
|
+
"isOptional": false,
|
|
5548
|
+
"releaseTag": "Public",
|
|
5549
|
+
"name": "children",
|
|
5550
|
+
"propertyTypeTokenRange": {
|
|
5551
|
+
"startIndex": 1,
|
|
5552
|
+
"endIndex": 2
|
|
5553
|
+
}
|
|
5554
|
+
}
|
|
5555
|
+
],
|
|
5556
|
+
"extendsTokenRanges": []
|
|
5557
|
+
},
|
|
5340
5558
|
{
|
|
5341
5559
|
"kind": "Interface",
|
|
5342
5560
|
"canonicalReference": "@alloy-js/typescript!FunctionBodyProps:interface",
|
|
@@ -6368,25 +6586,25 @@
|
|
|
6368
6586
|
},
|
|
6369
6587
|
{
|
|
6370
6588
|
"kind": "Content",
|
|
6371
|
-
"text": "(
|
|
6589
|
+
"text": "import(\"@alloy-js/core\")."
|
|
6372
6590
|
},
|
|
6373
6591
|
{
|
|
6374
6592
|
"kind": "Reference",
|
|
6375
|
-
"text": "
|
|
6376
|
-
"canonicalReference": "@alloy-js/
|
|
6593
|
+
"text": "Component",
|
|
6594
|
+
"canonicalReference": "@alloy-js/core!Component:interface"
|
|
6377
6595
|
},
|
|
6378
6596
|
{
|
|
6379
6597
|
"kind": "Content",
|
|
6380
|
-
"text": "
|
|
6598
|
+
"text": "<"
|
|
6381
6599
|
},
|
|
6382
6600
|
{
|
|
6383
6601
|
"kind": "Reference",
|
|
6384
|
-
"text": "
|
|
6385
|
-
"canonicalReference": "@alloy-js/
|
|
6602
|
+
"text": "FunctionTypeProps",
|
|
6603
|
+
"canonicalReference": "@alloy-js/typescript!FunctionTypeProps:interface"
|
|
6386
6604
|
},
|
|
6387
6605
|
{
|
|
6388
6606
|
"kind": "Content",
|
|
6389
|
-
"text": "
|
|
6607
|
+
"text": "> & {\n TypeParameters: import(\"@alloy-js/core\")."
|
|
6390
6608
|
},
|
|
6391
6609
|
{
|
|
6392
6610
|
"kind": "Reference",
|
|
@@ -7542,47 +7760,45 @@
|
|
|
7542
7760
|
]
|
|
7543
7761
|
},
|
|
7544
7762
|
{
|
|
7545
|
-
"kind": "
|
|
7546
|
-
"canonicalReference": "@alloy-js/typescript!InterfaceExpression:
|
|
7763
|
+
"kind": "Variable",
|
|
7764
|
+
"canonicalReference": "@alloy-js/typescript!InterfaceExpression:var",
|
|
7547
7765
|
"docComment": "",
|
|
7548
7766
|
"excerptTokens": [
|
|
7549
7767
|
{
|
|
7550
7768
|
"kind": "Content",
|
|
7551
|
-
"text": "InterfaceExpression:
|
|
7769
|
+
"text": "InterfaceExpression: "
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
"kind": "Content",
|
|
7773
|
+
"text": "import(\"@alloy-js/core\")."
|
|
7552
7774
|
},
|
|
7553
7775
|
{
|
|
7554
7776
|
"kind": "Reference",
|
|
7555
|
-
"text": "
|
|
7556
|
-
"canonicalReference": "@alloy-js/
|
|
7777
|
+
"text": "Component",
|
|
7778
|
+
"canonicalReference": "@alloy-js/core!Component:interface"
|
|
7557
7779
|
},
|
|
7558
7780
|
{
|
|
7559
7781
|
"kind": "Content",
|
|
7560
|
-
"text": "
|
|
7782
|
+
"text": "<"
|
|
7561
7783
|
},
|
|
7562
7784
|
{
|
|
7563
7785
|
"kind": "Reference",
|
|
7564
|
-
"text": "
|
|
7565
|
-
"canonicalReference": "@alloy-js/
|
|
7786
|
+
"text": "InterfaceExpressionProps",
|
|
7787
|
+
"canonicalReference": "@alloy-js/typescript!InterfaceExpressionProps:interface"
|
|
7788
|
+
},
|
|
7789
|
+
{
|
|
7790
|
+
"kind": "Content",
|
|
7791
|
+
"text": ">"
|
|
7566
7792
|
}
|
|
7567
7793
|
],
|
|
7568
7794
|
"fileUrlPath": "src/components/Interface.tsx",
|
|
7569
|
-
"
|
|
7570
|
-
"startIndex": 3,
|
|
7571
|
-
"endIndex": 4
|
|
7572
|
-
},
|
|
7795
|
+
"isReadonly": true,
|
|
7573
7796
|
"releaseTag": "Public",
|
|
7574
|
-
"
|
|
7575
|
-
"
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
"startIndex": 1,
|
|
7580
|
-
"endIndex": 2
|
|
7581
|
-
},
|
|
7582
|
-
"isOptional": false
|
|
7583
|
-
}
|
|
7584
|
-
],
|
|
7585
|
-
"name": "InterfaceExpression"
|
|
7797
|
+
"name": "InterfaceExpression",
|
|
7798
|
+
"variableTypeTokenRange": {
|
|
7799
|
+
"startIndex": 1,
|
|
7800
|
+
"endIndex": 6
|
|
7801
|
+
}
|
|
7586
7802
|
},
|
|
7587
7803
|
{
|
|
7588
7804
|
"kind": "Interface",
|
|
@@ -8867,7 +9083,7 @@
|
|
|
8867
9083
|
"excerptTokens": [
|
|
8868
9084
|
{
|
|
8869
9085
|
"kind": "Content",
|
|
8870
|
-
"text": "Part: (
|
|
9086
|
+
"text": "Part: (_props: "
|
|
8871
9087
|
},
|
|
8872
9088
|
{
|
|
8873
9089
|
"kind": "Reference",
|
|
@@ -8891,7 +9107,7 @@
|
|
|
8891
9107
|
"overloadIndex": 1,
|
|
8892
9108
|
"parameters": [
|
|
8893
9109
|
{
|
|
8894
|
-
"parameterName": "
|
|
9110
|
+
"parameterName": "_props",
|
|
8895
9111
|
"parameterTypeTokenRange": {
|
|
8896
9112
|
"startIndex": 1,
|
|
8897
9113
|
"endIndex": 2
|
|
@@ -13871,24 +14087,117 @@
|
|
|
13871
14087
|
},
|
|
13872
14088
|
{
|
|
13873
14089
|
"kind": "Function",
|
|
13874
|
-
"canonicalReference": "@alloy-js/typescript!
|
|
13875
|
-
"docComment": "",
|
|
14090
|
+
"canonicalReference": "@alloy-js/typescript!TryStatement:function(1)",
|
|
14091
|
+
"docComment": "/**\n * A try statement.\n *\n * @example\n * ```tsx\n * <TryStatement>\n * // risky operation\n * </TryStatement>\n * <CatchClause parameter=\"error\">\n * console.error(error);\n * </CatchClause>\n * ```\n *\n * renders to\n * ```ts\n * try {\n * // risky operation\n * } catch (error) {\n * console.error(error);\n * }\n * ```\n *\n */\n",
|
|
13876
14092
|
"excerptTokens": [
|
|
13877
14093
|
{
|
|
13878
14094
|
"kind": "Content",
|
|
13879
|
-
"text": "export declare function
|
|
14095
|
+
"text": "export declare function TryStatement(props: "
|
|
13880
14096
|
},
|
|
13881
14097
|
{
|
|
13882
14098
|
"kind": "Reference",
|
|
13883
|
-
"text": "
|
|
13884
|
-
"canonicalReference": "@alloy-js/typescript!
|
|
14099
|
+
"text": "TryStatementProps",
|
|
14100
|
+
"canonicalReference": "@alloy-js/typescript!TryStatementProps:interface"
|
|
13885
14101
|
},
|
|
13886
14102
|
{
|
|
13887
14103
|
"kind": "Content",
|
|
13888
14104
|
"text": "): "
|
|
13889
14105
|
},
|
|
13890
14106
|
{
|
|
13891
|
-
"kind": "
|
|
14107
|
+
"kind": "Reference",
|
|
14108
|
+
"text": "Children",
|
|
14109
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
14110
|
+
},
|
|
14111
|
+
{
|
|
14112
|
+
"kind": "Content",
|
|
14113
|
+
"text": ";"
|
|
14114
|
+
}
|
|
14115
|
+
],
|
|
14116
|
+
"fileUrlPath": "src/components/TryStatement.tsx",
|
|
14117
|
+
"returnTypeTokenRange": {
|
|
14118
|
+
"startIndex": 3,
|
|
14119
|
+
"endIndex": 4
|
|
14120
|
+
},
|
|
14121
|
+
"releaseTag": "Public",
|
|
14122
|
+
"overloadIndex": 1,
|
|
14123
|
+
"parameters": [
|
|
14124
|
+
{
|
|
14125
|
+
"parameterName": "props",
|
|
14126
|
+
"parameterTypeTokenRange": {
|
|
14127
|
+
"startIndex": 1,
|
|
14128
|
+
"endIndex": 2
|
|
14129
|
+
},
|
|
14130
|
+
"isOptional": false
|
|
14131
|
+
}
|
|
14132
|
+
],
|
|
14133
|
+
"name": "TryStatement"
|
|
14134
|
+
},
|
|
14135
|
+
{
|
|
14136
|
+
"kind": "Interface",
|
|
14137
|
+
"canonicalReference": "@alloy-js/typescript!TryStatementProps:interface",
|
|
14138
|
+
"docComment": "",
|
|
14139
|
+
"excerptTokens": [
|
|
14140
|
+
{
|
|
14141
|
+
"kind": "Content",
|
|
14142
|
+
"text": "export interface TryStatementProps "
|
|
14143
|
+
}
|
|
14144
|
+
],
|
|
14145
|
+
"fileUrlPath": "src/components/TryStatement.tsx",
|
|
14146
|
+
"releaseTag": "Public",
|
|
14147
|
+
"name": "TryStatementProps",
|
|
14148
|
+
"preserveMemberOrder": false,
|
|
14149
|
+
"members": [
|
|
14150
|
+
{
|
|
14151
|
+
"kind": "PropertySignature",
|
|
14152
|
+
"canonicalReference": "@alloy-js/typescript!TryStatementProps#children:member",
|
|
14153
|
+
"docComment": "",
|
|
14154
|
+
"excerptTokens": [
|
|
14155
|
+
{
|
|
14156
|
+
"kind": "Content",
|
|
14157
|
+
"text": "children: "
|
|
14158
|
+
},
|
|
14159
|
+
{
|
|
14160
|
+
"kind": "Reference",
|
|
14161
|
+
"text": "Children",
|
|
14162
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
14163
|
+
},
|
|
14164
|
+
{
|
|
14165
|
+
"kind": "Content",
|
|
14166
|
+
"text": ";"
|
|
14167
|
+
}
|
|
14168
|
+
],
|
|
14169
|
+
"isReadonly": false,
|
|
14170
|
+
"isOptional": false,
|
|
14171
|
+
"releaseTag": "Public",
|
|
14172
|
+
"name": "children",
|
|
14173
|
+
"propertyTypeTokenRange": {
|
|
14174
|
+
"startIndex": 1,
|
|
14175
|
+
"endIndex": 2
|
|
14176
|
+
}
|
|
14177
|
+
}
|
|
14178
|
+
],
|
|
14179
|
+
"extendsTokenRanges": []
|
|
14180
|
+
},
|
|
14181
|
+
{
|
|
14182
|
+
"kind": "Function",
|
|
14183
|
+
"canonicalReference": "@alloy-js/typescript!TSConfigJson:function(1)",
|
|
14184
|
+
"docComment": "",
|
|
14185
|
+
"excerptTokens": [
|
|
14186
|
+
{
|
|
14187
|
+
"kind": "Content",
|
|
14188
|
+
"text": "export declare function TSConfigJson(props: "
|
|
14189
|
+
},
|
|
14190
|
+
{
|
|
14191
|
+
"kind": "Reference",
|
|
14192
|
+
"text": "TSConfigJsonProps",
|
|
14193
|
+
"canonicalReference": "@alloy-js/typescript!TSConfigJsonProps:interface"
|
|
14194
|
+
},
|
|
14195
|
+
{
|
|
14196
|
+
"kind": "Content",
|
|
14197
|
+
"text": "): "
|
|
14198
|
+
},
|
|
14199
|
+
{
|
|
14200
|
+
"kind": "Content",
|
|
13892
14201
|
"text": "import(\"@alloy-js/core\")."
|
|
13893
14202
|
},
|
|
13894
14203
|
{
|
|
@@ -14416,6 +14725,41 @@
|
|
|
14416
14725
|
"isAbstract": false,
|
|
14417
14726
|
"name": "addImport"
|
|
14418
14727
|
},
|
|
14728
|
+
{
|
|
14729
|
+
"kind": "Property",
|
|
14730
|
+
"canonicalReference": "@alloy-js/typescript!TSModuleScope#debugInfo:member",
|
|
14731
|
+
"docComment": "",
|
|
14732
|
+
"excerptTokens": [
|
|
14733
|
+
{
|
|
14734
|
+
"kind": "Content",
|
|
14735
|
+
"text": "get debugInfo(): "
|
|
14736
|
+
},
|
|
14737
|
+
{
|
|
14738
|
+
"kind": "Reference",
|
|
14739
|
+
"text": "Record",
|
|
14740
|
+
"canonicalReference": "!Record:type"
|
|
14741
|
+
},
|
|
14742
|
+
{
|
|
14743
|
+
"kind": "Content",
|
|
14744
|
+
"text": "<string, unknown>"
|
|
14745
|
+
},
|
|
14746
|
+
{
|
|
14747
|
+
"kind": "Content",
|
|
14748
|
+
"text": ";"
|
|
14749
|
+
}
|
|
14750
|
+
],
|
|
14751
|
+
"isReadonly": true,
|
|
14752
|
+
"isOptional": false,
|
|
14753
|
+
"releaseTag": "Public",
|
|
14754
|
+
"name": "debugInfo",
|
|
14755
|
+
"propertyTypeTokenRange": {
|
|
14756
|
+
"startIndex": 1,
|
|
14757
|
+
"endIndex": 3
|
|
14758
|
+
},
|
|
14759
|
+
"isStatic": false,
|
|
14760
|
+
"isProtected": false,
|
|
14761
|
+
"isAbstract": false
|
|
14762
|
+
},
|
|
14419
14763
|
{
|
|
14420
14764
|
"kind": "Property",
|
|
14421
14765
|
"canonicalReference": "@alloy-js/typescript!TSModuleScope#exportedSymbols:member",
|
|
@@ -14597,6 +14941,72 @@
|
|
|
14597
14941
|
"isStatic": false,
|
|
14598
14942
|
"isProtected": false,
|
|
14599
14943
|
"isAbstract": false
|
|
14944
|
+
},
|
|
14945
|
+
{
|
|
14946
|
+
"kind": "Method",
|
|
14947
|
+
"canonicalReference": "@alloy-js/typescript!TSModuleScope#removeImport:member(1)",
|
|
14948
|
+
"docComment": "/**\n * Decrement the refcount for an import previously registered via\n * {@link TSModuleScope.addImport | addImport}. When the last live consumer goes away, the local import\n * symbol is deleted, which removes it from the module's name spaces and\n * triggers name-conflict-resolver reconciliation.\n */\n",
|
|
14949
|
+
"excerptTokens": [
|
|
14950
|
+
{
|
|
14951
|
+
"kind": "Content",
|
|
14952
|
+
"text": "removeImport(targetSymbol: "
|
|
14953
|
+
},
|
|
14954
|
+
{
|
|
14955
|
+
"kind": "Reference",
|
|
14956
|
+
"text": "TSOutputSymbol",
|
|
14957
|
+
"canonicalReference": "@alloy-js/typescript!TSOutputSymbol:class"
|
|
14958
|
+
},
|
|
14959
|
+
{
|
|
14960
|
+
"kind": "Content",
|
|
14961
|
+
"text": ", options?: "
|
|
14962
|
+
},
|
|
14963
|
+
{
|
|
14964
|
+
"kind": "Reference",
|
|
14965
|
+
"text": "AddImportOptions",
|
|
14966
|
+
"canonicalReference": "@alloy-js/typescript!AddImportOptions:interface"
|
|
14967
|
+
},
|
|
14968
|
+
{
|
|
14969
|
+
"kind": "Content",
|
|
14970
|
+
"text": "): "
|
|
14971
|
+
},
|
|
14972
|
+
{
|
|
14973
|
+
"kind": "Content",
|
|
14974
|
+
"text": "void"
|
|
14975
|
+
},
|
|
14976
|
+
{
|
|
14977
|
+
"kind": "Content",
|
|
14978
|
+
"text": ";"
|
|
14979
|
+
}
|
|
14980
|
+
],
|
|
14981
|
+
"isStatic": false,
|
|
14982
|
+
"returnTypeTokenRange": {
|
|
14983
|
+
"startIndex": 5,
|
|
14984
|
+
"endIndex": 6
|
|
14985
|
+
},
|
|
14986
|
+
"releaseTag": "Public",
|
|
14987
|
+
"isProtected": false,
|
|
14988
|
+
"overloadIndex": 1,
|
|
14989
|
+
"parameters": [
|
|
14990
|
+
{
|
|
14991
|
+
"parameterName": "targetSymbol",
|
|
14992
|
+
"parameterTypeTokenRange": {
|
|
14993
|
+
"startIndex": 1,
|
|
14994
|
+
"endIndex": 2
|
|
14995
|
+
},
|
|
14996
|
+
"isOptional": false
|
|
14997
|
+
},
|
|
14998
|
+
{
|
|
14999
|
+
"parameterName": "options",
|
|
15000
|
+
"parameterTypeTokenRange": {
|
|
15001
|
+
"startIndex": 3,
|
|
15002
|
+
"endIndex": 4
|
|
15003
|
+
},
|
|
15004
|
+
"isOptional": true
|
|
15005
|
+
}
|
|
15006
|
+
],
|
|
15007
|
+
"isOptional": false,
|
|
15008
|
+
"isAbstract": false,
|
|
15009
|
+
"name": "removeImport"
|
|
14600
15010
|
}
|
|
14601
15011
|
],
|
|
14602
15012
|
"extendsTokenRange": {
|
|
@@ -14624,8 +15034,8 @@
|
|
|
14624
15034
|
},
|
|
14625
15035
|
{
|
|
14626
15036
|
"kind": "Reference",
|
|
14627
|
-
"text": "
|
|
14628
|
-
"canonicalReference": "@alloy-js/
|
|
15037
|
+
"text": "OutputSymbol",
|
|
15038
|
+
"canonicalReference": "@alloy-js/core!OutputSymbol:class"
|
|
14629
15039
|
},
|
|
14630
15040
|
{
|
|
14631
15041
|
"kind": "Content",
|
|
@@ -14857,6 +15267,41 @@
|
|
|
14857
15267
|
"isAbstract": false,
|
|
14858
15268
|
"name": "copy"
|
|
14859
15269
|
},
|
|
15270
|
+
{
|
|
15271
|
+
"kind": "Property",
|
|
15272
|
+
"canonicalReference": "@alloy-js/typescript!TSOutputSymbol#debugInfo:member",
|
|
15273
|
+
"docComment": "",
|
|
15274
|
+
"excerptTokens": [
|
|
15275
|
+
{
|
|
15276
|
+
"kind": "Content",
|
|
15277
|
+
"text": "get debugInfo(): "
|
|
15278
|
+
},
|
|
15279
|
+
{
|
|
15280
|
+
"kind": "Reference",
|
|
15281
|
+
"text": "Record",
|
|
15282
|
+
"canonicalReference": "!Record:type"
|
|
15283
|
+
},
|
|
15284
|
+
{
|
|
15285
|
+
"kind": "Content",
|
|
15286
|
+
"text": "<string, unknown>"
|
|
15287
|
+
},
|
|
15288
|
+
{
|
|
15289
|
+
"kind": "Content",
|
|
15290
|
+
"text": ";"
|
|
15291
|
+
}
|
|
15292
|
+
],
|
|
15293
|
+
"isReadonly": true,
|
|
15294
|
+
"isOptional": false,
|
|
15295
|
+
"releaseTag": "Public",
|
|
15296
|
+
"name": "debugInfo",
|
|
15297
|
+
"propertyTypeTokenRange": {
|
|
15298
|
+
"startIndex": 1,
|
|
15299
|
+
"endIndex": 3
|
|
15300
|
+
},
|
|
15301
|
+
"isStatic": false,
|
|
15302
|
+
"isProtected": false,
|
|
15303
|
+
"isAbstract": false
|
|
15304
|
+
},
|
|
14860
15305
|
{
|
|
14861
15306
|
"kind": "Property",
|
|
14862
15307
|
"canonicalReference": "@alloy-js/typescript!TSOutputSymbol#default:member",
|
|
@@ -15745,6 +16190,41 @@
|
|
|
15745
16190
|
"isAbstract": false,
|
|
15746
16191
|
"name": "copyTo"
|
|
15747
16192
|
},
|
|
16193
|
+
{
|
|
16194
|
+
"kind": "Property",
|
|
16195
|
+
"canonicalReference": "@alloy-js/typescript!TSPackageScope#debugInfo:member",
|
|
16196
|
+
"docComment": "",
|
|
16197
|
+
"excerptTokens": [
|
|
16198
|
+
{
|
|
16199
|
+
"kind": "Content",
|
|
16200
|
+
"text": "get debugInfo(): "
|
|
16201
|
+
},
|
|
16202
|
+
{
|
|
16203
|
+
"kind": "Reference",
|
|
16204
|
+
"text": "Record",
|
|
16205
|
+
"canonicalReference": "!Record:type"
|
|
16206
|
+
},
|
|
16207
|
+
{
|
|
16208
|
+
"kind": "Content",
|
|
16209
|
+
"text": "<string, unknown>"
|
|
16210
|
+
},
|
|
16211
|
+
{
|
|
16212
|
+
"kind": "Content",
|
|
16213
|
+
"text": ";"
|
|
16214
|
+
}
|
|
16215
|
+
],
|
|
16216
|
+
"isReadonly": true,
|
|
16217
|
+
"isOptional": false,
|
|
16218
|
+
"releaseTag": "Public",
|
|
16219
|
+
"name": "debugInfo",
|
|
16220
|
+
"propertyTypeTokenRange": {
|
|
16221
|
+
"startIndex": 1,
|
|
16222
|
+
"endIndex": 3
|
|
16223
|
+
},
|
|
16224
|
+
"isStatic": false,
|
|
16225
|
+
"isProtected": false,
|
|
16226
|
+
"isAbstract": false
|
|
16227
|
+
},
|
|
15748
16228
|
{
|
|
15749
16229
|
"kind": "Property",
|
|
15750
16230
|
"canonicalReference": "@alloy-js/typescript!TSPackageScope#dependencies:member",
|
|
@@ -16184,51 +16664,45 @@
|
|
|
16184
16664
|
]
|
|
16185
16665
|
},
|
|
16186
16666
|
{
|
|
16187
|
-
"kind": "
|
|
16188
|
-
"canonicalReference": "@alloy-js/typescript!TypeDeclaration:
|
|
16667
|
+
"kind": "Variable",
|
|
16668
|
+
"canonicalReference": "@alloy-js/typescript!TypeDeclaration:var",
|
|
16189
16669
|
"docComment": "",
|
|
16190
16670
|
"excerptTokens": [
|
|
16191
16671
|
{
|
|
16192
16672
|
"kind": "Content",
|
|
16193
|
-
"text": "TypeDeclaration:
|
|
16673
|
+
"text": "TypeDeclaration: "
|
|
16194
16674
|
},
|
|
16195
16675
|
{
|
|
16196
|
-
"kind": "
|
|
16197
|
-
"text": "
|
|
16198
|
-
"canonicalReference": "@alloy-js/typescript!TypeDeclarationProps:interface"
|
|
16676
|
+
"kind": "Content",
|
|
16677
|
+
"text": "import(\"@alloy-js/core\")."
|
|
16199
16678
|
},
|
|
16200
16679
|
{
|
|
16201
|
-
"kind": "
|
|
16202
|
-
"text": "
|
|
16680
|
+
"kind": "Reference",
|
|
16681
|
+
"text": "Component",
|
|
16682
|
+
"canonicalReference": "@alloy-js/core!Component:interface"
|
|
16203
16683
|
},
|
|
16204
16684
|
{
|
|
16205
16685
|
"kind": "Content",
|
|
16206
|
-
"text": "
|
|
16686
|
+
"text": "<"
|
|
16207
16687
|
},
|
|
16208
16688
|
{
|
|
16209
16689
|
"kind": "Reference",
|
|
16210
|
-
"text": "
|
|
16211
|
-
"canonicalReference": "@alloy-js/
|
|
16690
|
+
"text": "TypeDeclarationProps",
|
|
16691
|
+
"canonicalReference": "@alloy-js/typescript!TypeDeclarationProps:interface"
|
|
16692
|
+
},
|
|
16693
|
+
{
|
|
16694
|
+
"kind": "Content",
|
|
16695
|
+
"text": ">"
|
|
16212
16696
|
}
|
|
16213
16697
|
],
|
|
16214
16698
|
"fileUrlPath": "src/components/TypeDeclaration.tsx",
|
|
16215
|
-
"
|
|
16216
|
-
"startIndex": 3,
|
|
16217
|
-
"endIndex": 5
|
|
16218
|
-
},
|
|
16699
|
+
"isReadonly": true,
|
|
16219
16700
|
"releaseTag": "Public",
|
|
16220
|
-
"
|
|
16221
|
-
"
|
|
16222
|
-
|
|
16223
|
-
|
|
16224
|
-
|
|
16225
|
-
"startIndex": 1,
|
|
16226
|
-
"endIndex": 2
|
|
16227
|
-
},
|
|
16228
|
-
"isOptional": false
|
|
16229
|
-
}
|
|
16230
|
-
],
|
|
16231
|
-
"name": "TypeDeclaration"
|
|
16701
|
+
"name": "TypeDeclaration",
|
|
16702
|
+
"variableTypeTokenRange": {
|
|
16703
|
+
"startIndex": 1,
|
|
16704
|
+
"endIndex": 6
|
|
16705
|
+
}
|
|
16232
16706
|
},
|
|
16233
16707
|
{
|
|
16234
16708
|
"kind": "Interface",
|