@powerlines/plugin-alloy 0.25.49 → 0.25.51
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/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/core/components/index.cjs +10 -0
- package/dist/core/components/index.d.cts +5 -0
- package/dist/core/components/index.d.mts +5 -0
- package/dist/core/components/index.mjs +6 -0
- package/dist/core/components/output.cjs +41 -0
- package/dist/core/components/output.d.cts +24 -0
- package/dist/core/components/output.d.cts.map +1 -0
- package/dist/core/components/output.d.mts +24 -0
- package/dist/core/components/output.d.mts.map +1 -0
- package/dist/core/components/output.mjs +40 -0
- package/dist/core/components/output.mjs.map +1 -0
- package/dist/core/components/single-line-comment.cjs +23 -0
- package/dist/core/components/single-line-comment.d.cts +23 -0
- package/dist/core/components/single-line-comment.d.cts.map +1 -0
- package/dist/core/components/single-line-comment.d.mts +23 -0
- package/dist/core/components/single-line-comment.d.mts.map +1 -0
- package/dist/core/components/single-line-comment.mjs +22 -0
- package/dist/core/components/single-line-comment.mjs.map +1 -0
- package/dist/core/components/source-file.cjs +64 -0
- package/dist/core/components/source-file.d.cts +33 -0
- package/dist/core/components/source-file.d.cts.map +1 -0
- package/dist/core/components/source-file.d.mts +33 -0
- package/dist/core/components/source-file.d.mts.map +1 -0
- package/dist/core/components/source-file.mjs +62 -0
- package/dist/core/components/source-file.mjs.map +1 -0
- package/dist/core/components/spacing.cjs +20 -0
- package/dist/core/components/spacing.d.cts +24 -0
- package/dist/core/components/spacing.d.cts.map +1 -0
- package/dist/core/components/spacing.d.mts +24 -0
- package/dist/core/components/spacing.d.mts.map +1 -0
- package/dist/core/components/spacing.mjs +19 -0
- package/dist/core/components/spacing.mjs.map +1 -0
- package/dist/core/contexts/context.cjs +41 -0
- package/dist/core/contexts/context.d.cts +29 -0
- package/dist/core/contexts/context.d.cts.map +1 -0
- package/dist/core/contexts/context.d.mts +29 -0
- package/dist/core/contexts/context.d.mts.map +1 -0
- package/dist/core/contexts/context.mjs +37 -0
- package/dist/core/contexts/context.mjs.map +1 -0
- package/dist/core/contexts/index.cjs +21 -0
- package/dist/core/contexts/index.d.cts +4 -0
- package/dist/core/contexts/index.d.mts +4 -0
- package/dist/core/contexts/index.mjs +5 -0
- package/dist/core/contexts/meta.cjs +41 -0
- package/dist/core/contexts/meta.d.cts +48 -0
- package/dist/core/contexts/meta.d.cts.map +1 -0
- package/dist/core/contexts/meta.d.mts +48 -0
- package/dist/core/contexts/meta.d.mts.map +1 -0
- package/dist/core/contexts/meta.mjs +37 -0
- package/dist/core/contexts/meta.mjs.map +1 -0
- package/dist/core/contexts/reflection.cjs +69 -0
- package/dist/core/contexts/reflection.d.cts +53 -0
- package/dist/core/contexts/reflection.d.cts.map +1 -0
- package/dist/core/contexts/reflection.d.mts +53 -0
- package/dist/core/contexts/reflection.d.mts.map +1 -0
- package/dist/core/contexts/reflection.mjs +61 -0
- package/dist/core/contexts/reflection.mjs.map +1 -0
- package/dist/core/helpers/code.cjs +34 -0
- package/dist/core/helpers/code.d.cts +29 -0
- package/dist/core/helpers/code.d.cts.map +1 -0
- package/dist/core/helpers/code.d.mts +29 -0
- package/dist/core/helpers/code.d.mts.map +1 -0
- package/dist/core/helpers/code.mjs +33 -0
- package/dist/core/helpers/code.mjs.map +1 -0
- package/dist/core/helpers/index.cjs +4 -0
- package/dist/core/helpers/index.d.cts +2 -0
- package/dist/core/helpers/index.d.mts +2 -0
- package/dist/core/helpers/index.mjs +3 -0
- package/dist/core/index.cjs +34 -0
- package/dist/core/index.d.cts +9 -0
- package/dist/core/index.d.mts +9 -0
- package/dist/core/index.mjs +13 -0
- package/dist/helpers/capnp.cjs +277 -0
- package/dist/helpers/capnp.d.cts +87 -0
- package/dist/helpers/capnp.d.cts.map +1 -0
- package/dist/helpers/capnp.d.mts +87 -0
- package/dist/helpers/capnp.d.mts.map +1 -0
- package/dist/helpers/capnp.mjs +260 -0
- package/dist/helpers/capnp.mjs.map +1 -0
- package/dist/helpers/create-builtin.cjs +20 -0
- package/dist/helpers/create-builtin.d.cts +16 -0
- package/dist/helpers/create-builtin.d.cts.map +1 -0
- package/dist/helpers/create-builtin.d.mts +16 -0
- package/dist/helpers/create-builtin.d.mts.map +1 -0
- package/dist/helpers/create-builtin.mjs +19 -0
- package/dist/helpers/create-builtin.mjs.map +1 -0
- package/dist/helpers/index.cjs +25 -0
- package/dist/helpers/index.d.cts +5 -0
- package/dist/helpers/index.d.mts +5 -0
- package/dist/helpers/index.mjs +6 -0
- package/dist/helpers/refkey.cjs +17 -0
- package/dist/helpers/refkey.d.cts +13 -0
- package/dist/helpers/refkey.d.cts.map +1 -0
- package/dist/helpers/refkey.d.mts +13 -0
- package/dist/helpers/refkey.d.mts.map +1 -0
- package/dist/helpers/refkey.mjs +16 -0
- package/dist/helpers/refkey.mjs.map +1 -0
- package/dist/helpers/typescript.cjs +47 -0
- package/dist/helpers/typescript.d.cts +26 -0
- package/dist/helpers/typescript.d.cts.map +1 -0
- package/dist/helpers/typescript.d.mts +26 -0
- package/dist/helpers/typescript.d.mts.map +1 -0
- package/dist/helpers/typescript.mjs +46 -0
- package/dist/helpers/typescript.mjs.map +1 -0
- package/dist/index.cjs +48 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +45 -0
- package/dist/index.mjs.map +1 -0
- package/dist/markdown/components/front-matter.cjs +29 -0
- package/dist/markdown/components/front-matter.d.cts +16 -0
- package/dist/markdown/components/front-matter.d.cts.map +1 -0
- package/dist/markdown/components/front-matter.d.mts +16 -0
- package/dist/markdown/components/front-matter.d.mts.map +1 -0
- package/dist/markdown/components/front-matter.mjs +28 -0
- package/dist/markdown/components/front-matter.mjs.map +1 -0
- package/dist/markdown/components/index.cjs +11 -0
- package/dist/markdown/components/index.d.cts +4 -0
- package/dist/markdown/components/index.d.mts +4 -0
- package/dist/markdown/components/index.mjs +5 -0
- package/dist/markdown/components/markdown-file.cjs +135 -0
- package/dist/markdown/components/markdown-file.d.cts +29 -0
- package/dist/markdown/components/markdown-file.d.cts.map +1 -0
- package/dist/markdown/components/markdown-file.d.mts +29 -0
- package/dist/markdown/components/markdown-file.d.mts.map +1 -0
- package/dist/markdown/components/markdown-file.mjs +133 -0
- package/dist/markdown/components/markdown-file.mjs.map +1 -0
- package/dist/markdown/components/markdown-table.cjs +102 -0
- package/dist/markdown/components/markdown-table.d.cts +28 -0
- package/dist/markdown/components/markdown-table.d.cts.map +1 -0
- package/dist/markdown/components/markdown-table.d.mts +28 -0
- package/dist/markdown/components/markdown-table.d.mts.map +1 -0
- package/dist/markdown/components/markdown-table.mjs +99 -0
- package/dist/markdown/components/markdown-table.mjs.map +1 -0
- package/dist/markdown/contexts/index.cjs +7 -0
- package/dist/markdown/contexts/index.d.cts +2 -0
- package/dist/markdown/contexts/index.d.mts +2 -0
- package/dist/markdown/contexts/index.mjs +3 -0
- package/dist/markdown/contexts/markdown-table.cjs +38 -0
- package/dist/markdown/contexts/markdown-table.d.cts +38 -0
- package/dist/markdown/contexts/markdown-table.d.cts.map +1 -0
- package/dist/markdown/contexts/markdown-table.d.mts +38 -0
- package/dist/markdown/contexts/markdown-table.d.mts.map +1 -0
- package/dist/markdown/contexts/markdown-table.mjs +34 -0
- package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
- package/dist/markdown/index.cjs +18 -0
- package/dist/markdown/index.d.cts +5 -0
- package/dist/markdown/index.d.mts +5 -0
- package/dist/markdown/index.mjs +8 -0
- package/dist/render.cjs +91 -0
- package/dist/render.d.cts +38 -0
- package/dist/render.d.cts.map +1 -0
- package/dist/render.d.mts +38 -0
- package/dist/render.d.mts.map +1 -0
- package/dist/render.mjs +89 -0
- package/dist/render.mjs.map +1 -0
- package/dist/types/components.cjs +0 -0
- package/dist/types/components.d.cts +142 -0
- package/dist/types/components.d.cts.map +1 -0
- package/dist/types/components.d.mts +142 -0
- package/dist/types/components.d.mts.map +1 -0
- package/dist/types/components.mjs +1 -0
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +39 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +39 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/typescript/components/builtin-file.cjs +63 -0
- package/dist/typescript/components/builtin-file.d.cts +35 -0
- package/dist/typescript/components/builtin-file.d.cts.map +1 -0
- package/dist/typescript/components/builtin-file.d.mts +35 -0
- package/dist/typescript/components/builtin-file.d.mts.map +1 -0
- package/dist/typescript/components/builtin-file.mjs +62 -0
- package/dist/typescript/components/builtin-file.mjs.map +1 -0
- package/dist/typescript/components/class-declaration.cjs +291 -0
- package/dist/typescript/components/class-declaration.d.cts +145 -0
- package/dist/typescript/components/class-declaration.d.cts.map +1 -0
- package/dist/typescript/components/class-declaration.d.mts +145 -0
- package/dist/typescript/components/class-declaration.d.mts.map +1 -0
- package/dist/typescript/components/class-declaration.mjs +285 -0
- package/dist/typescript/components/class-declaration.mjs.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.cjs +26 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts +33 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts +33 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.mjs +25 -0
- package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
- package/dist/typescript/components/entry-file.cjs +43 -0
- package/dist/typescript/components/entry-file.d.cts +28 -0
- package/dist/typescript/components/entry-file.d.cts.map +1 -0
- package/dist/typescript/components/entry-file.d.mts +28 -0
- package/dist/typescript/components/entry-file.d.mts.map +1 -0
- package/dist/typescript/components/entry-file.mjs +41 -0
- package/dist/typescript/components/entry-file.mjs.map +1 -0
- package/dist/typescript/components/index.cjs +65 -0
- package/dist/typescript/components/index.d.cts +15 -0
- package/dist/typescript/components/index.d.mts +15 -0
- package/dist/typescript/components/index.mjs +16 -0
- package/dist/typescript/components/infrastructure-file.cjs +40 -0
- package/dist/typescript/components/infrastructure-file.d.cts +21 -0
- package/dist/typescript/components/infrastructure-file.d.cts.map +1 -0
- package/dist/typescript/components/infrastructure-file.d.mts +21 -0
- package/dist/typescript/components/infrastructure-file.d.mts.map +1 -0
- package/dist/typescript/components/infrastructure-file.mjs +38 -0
- package/dist/typescript/components/infrastructure-file.mjs.map +1 -0
- package/dist/typescript/components/interface-declaration.cjs +229 -0
- package/dist/typescript/components/interface-declaration.d.cts +86 -0
- package/dist/typescript/components/interface-declaration.d.cts.map +1 -0
- package/dist/typescript/components/interface-declaration.d.mts +86 -0
- package/dist/typescript/components/interface-declaration.d.mts.map +1 -0
- package/dist/typescript/components/interface-declaration.mjs +225 -0
- package/dist/typescript/components/interface-declaration.mjs.map +1 -0
- package/dist/typescript/components/object-declaration.cjs +128 -0
- package/dist/typescript/components/object-declaration.d.cts +30 -0
- package/dist/typescript/components/object-declaration.d.cts.map +1 -0
- package/dist/typescript/components/object-declaration.d.mts +30 -0
- package/dist/typescript/components/object-declaration.d.mts.map +1 -0
- package/dist/typescript/components/object-declaration.mjs +126 -0
- package/dist/typescript/components/object-declaration.mjs.map +1 -0
- package/dist/typescript/components/property-name.cjs +32 -0
- package/dist/typescript/components/property-name.d.cts +24 -0
- package/dist/typescript/components/property-name.d.cts.map +1 -0
- package/dist/typescript/components/property-name.d.mts +24 -0
- package/dist/typescript/components/property-name.d.mts.map +1 -0
- package/dist/typescript/components/property-name.mjs +31 -0
- package/dist/typescript/components/property-name.mjs.map +1 -0
- package/dist/typescript/components/record-expression.cjs +13 -0
- package/dist/typescript/components/record-expression.d.cts +13 -0
- package/dist/typescript/components/record-expression.d.cts.map +1 -0
- package/dist/typescript/components/record-expression.d.mts +13 -0
- package/dist/typescript/components/record-expression.d.mts.map +1 -0
- package/dist/typescript/components/record-expression.mjs +12 -0
- package/dist/typescript/components/record-expression.mjs.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.cjs +310 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts +44 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts +44 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.mjs +304 -0
- package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -0
- package/dist/typescript/components/tsdoc.cjs +477 -0
- package/dist/typescript/components/tsdoc.d.cts +164 -0
- package/dist/typescript/components/tsdoc.d.cts.map +1 -0
- package/dist/typescript/components/tsdoc.d.mts +164 -0
- package/dist/typescript/components/tsdoc.d.mts.map +1 -0
- package/dist/typescript/components/tsdoc.mjs +457 -0
- package/dist/typescript/components/tsdoc.mjs.map +1 -0
- package/dist/typescript/components/type-declaration.cjs +39 -0
- package/dist/typescript/components/type-declaration.d.cts +18 -0
- package/dist/typescript/components/type-declaration.d.cts.map +1 -0
- package/dist/typescript/components/type-declaration.d.mts +18 -0
- package/dist/typescript/components/type-declaration.d.mts.map +1 -0
- package/dist/typescript/components/type-declaration.mjs +38 -0
- package/dist/typescript/components/type-declaration.mjs.map +1 -0
- package/dist/typescript/components/type-parameters.cjs +82 -0
- package/dist/typescript/components/type-parameters.d.cts +24 -0
- package/dist/typescript/components/type-parameters.d.cts.map +1 -0
- package/dist/typescript/components/type-parameters.d.mts +24 -0
- package/dist/typescript/components/type-parameters.d.mts.map +1 -0
- package/dist/typescript/components/type-parameters.mjs +81 -0
- package/dist/typescript/components/type-parameters.mjs.map +1 -0
- package/dist/typescript/components/typescript-file.cjs +221 -0
- package/dist/typescript/components/typescript-file.d.cts +50 -0
- package/dist/typescript/components/typescript-file.d.cts.map +1 -0
- package/dist/typescript/components/typescript-file.d.mts +50 -0
- package/dist/typescript/components/typescript-file.d.mts.map +1 -0
- package/dist/typescript/components/typescript-file.mjs +218 -0
- package/dist/typescript/components/typescript-file.mjs.map +1 -0
- package/dist/typescript/contexts/index.cjs +4 -0
- package/dist/typescript/contexts/index.d.cts +2 -0
- package/dist/typescript/contexts/index.d.mts +2 -0
- package/dist/typescript/contexts/index.mjs +3 -0
- package/dist/typescript/contexts/lexical-scope.cjs +26 -0
- package/dist/typescript/contexts/lexical-scope.d.cts +17 -0
- package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -0
- package/dist/typescript/contexts/lexical-scope.d.mts +17 -0
- package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -0
- package/dist/typescript/contexts/lexical-scope.mjs +25 -0
- package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
- package/dist/typescript/contexts/member-scope.cjs +24 -0
- package/dist/typescript/contexts/member-scope.d.cts +20 -0
- package/dist/typescript/contexts/member-scope.d.cts.map +1 -0
- package/dist/typescript/contexts/member-scope.d.mts +20 -0
- package/dist/typescript/contexts/member-scope.d.mts.map +1 -0
- package/dist/typescript/contexts/member-scope.mjs +23 -0
- package/dist/typescript/contexts/member-scope.mjs.map +1 -0
- package/dist/typescript/helpers/get-call-signature-props.cjs +26 -0
- package/dist/typescript/helpers/get-call-signature-props.d.cts +14 -0
- package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -0
- package/dist/typescript/helpers/get-call-signature-props.d.mts +14 -0
- package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -0
- package/dist/typescript/helpers/get-call-signature-props.mjs +25 -0
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
- package/dist/typescript/helpers/index.cjs +6 -0
- package/dist/typescript/helpers/index.d.cts +3 -0
- package/dist/typescript/helpers/index.d.mts +3 -0
- package/dist/typescript/helpers/index.mjs +4 -0
- package/dist/typescript/helpers/utilities.cjs +15 -0
- package/dist/typescript/helpers/utilities.d.cts +11 -0
- package/dist/typescript/helpers/utilities.d.cts.map +1 -0
- package/dist/typescript/helpers/utilities.d.mts +11 -0
- package/dist/typescript/helpers/utilities.d.mts.map +1 -0
- package/dist/typescript/helpers/utilities.mjs +14 -0
- package/dist/typescript/helpers/utilities.mjs.map +1 -0
- package/dist/typescript/index.cjs +74 -0
- package/dist/typescript/index.d.cts +18 -0
- package/dist/typescript/index.d.mts +18 -0
- package/dist/typescript/index.mjs +22 -0
- package/dist/yaml/components/index.cjs +5 -0
- package/dist/yaml/components/index.d.cts +2 -0
- package/dist/yaml/components/index.d.mts +2 -0
- package/dist/yaml/components/index.mjs +3 -0
- package/dist/yaml/components/yaml-file.cjs +149 -0
- package/dist/yaml/components/yaml-file.d.cts +34 -0
- package/dist/yaml/components/yaml-file.d.cts.map +1 -0
- package/dist/yaml/components/yaml-file.d.mts +34 -0
- package/dist/yaml/components/yaml-file.d.mts.map +1 -0
- package/dist/yaml/components/yaml-file.mjs +147 -0
- package/dist/yaml/components/yaml-file.mjs.map +1 -0
- package/dist/yaml/index.cjs +6 -0
- package/dist/yaml/index.d.cts +2 -0
- package/dist/yaml/index.d.mts +2 -0
- package/dist/yaml/index.mjs +4 -0
- package/package.json +7 -7
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
3
|
+
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
4
|
+
const require_typescript_components_builtin_file = require('./builtin-file.cjs');
|
|
5
|
+
const require_typescript_components_property_name = require('./property-name.cjs');
|
|
6
|
+
const require_typescript_components_type_parameters = require('./type-parameters.cjs');
|
|
7
|
+
const require_typescript_components_class_declaration = require('./class-declaration.cjs');
|
|
8
|
+
const require_typescript_components_dynamic_import_statement = require('./dynamic-import-statement.cjs');
|
|
9
|
+
const require_typescript_components_entry_file = require('./entry-file.cjs');
|
|
10
|
+
const require_typescript_components_infrastructure_file = require('./infrastructure-file.cjs');
|
|
11
|
+
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
12
|
+
const require_typescript_components_interface_declaration = require('./interface-declaration.cjs');
|
|
13
|
+
const require_typescript_components_object_declaration = require('./object-declaration.cjs');
|
|
14
|
+
const require_typescript_components_record_expression = require('./record-expression.cjs');
|
|
15
|
+
const require_typescript_components_type_declaration = require('./type-declaration.cjs');
|
|
16
|
+
|
|
17
|
+
exports.BuiltinFile = require_typescript_components_builtin_file.BuiltinFile;
|
|
18
|
+
exports.ClassDeclaration = require_typescript_components_class_declaration.ClassDeclaration;
|
|
19
|
+
exports.ClassField = require_typescript_components_class_declaration.ClassField;
|
|
20
|
+
exports.ClassMember = require_typescript_components_class_declaration.ClassMember;
|
|
21
|
+
exports.ClassMethod = require_typescript_components_class_declaration.ClassMethod;
|
|
22
|
+
exports.ClassPropertyGet = require_typescript_components_class_declaration.ClassPropertyGet;
|
|
23
|
+
exports.ClassPropertySet = require_typescript_components_class_declaration.ClassPropertySet;
|
|
24
|
+
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
25
|
+
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
26
|
+
exports.InfrastructureFile = require_typescript_components_infrastructure_file.InfrastructureFile;
|
|
27
|
+
exports.InterfaceDeclaration = require_typescript_components_interface_declaration.InterfaceDeclaration;
|
|
28
|
+
exports.InterfaceDeclarationProperty = require_typescript_components_interface_declaration.InterfaceDeclarationProperty;
|
|
29
|
+
exports.InterfaceExpression = require_typescript_components_interface_declaration.InterfaceExpression;
|
|
30
|
+
exports.InterfaceMember = require_typescript_components_interface_declaration.InterfaceMember;
|
|
31
|
+
exports.ObjectDeclaration = require_typescript_components_object_declaration.ObjectDeclaration;
|
|
32
|
+
exports.ObjectDeclarationProperty = require_typescript_components_object_declaration.ObjectDeclarationProperty;
|
|
33
|
+
exports.PropertyName = require_typescript_components_property_name.PropertyName;
|
|
34
|
+
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
35
|
+
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
36
|
+
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
37
|
+
exports.TSDocAttributesTags = require_typescript_components_tsdoc.TSDocAttributesTags;
|
|
38
|
+
exports.TSDocContextClass = require_typescript_components_tsdoc_reflection.TSDocContextClass;
|
|
39
|
+
exports.TSDocContextMethod = require_typescript_components_tsdoc_reflection.TSDocContextMethod;
|
|
40
|
+
exports.TSDocContextProperty = require_typescript_components_tsdoc_reflection.TSDocContextProperty;
|
|
41
|
+
exports.TSDocDefaultValue = require_typescript_components_tsdoc.TSDocDefaultValue;
|
|
42
|
+
exports.TSDocDomain = require_typescript_components_tsdoc.TSDocDomain;
|
|
43
|
+
exports.TSDocExample = require_typescript_components_tsdoc.TSDocExample;
|
|
44
|
+
exports.TSDocHidden = require_typescript_components_tsdoc.TSDocHidden;
|
|
45
|
+
exports.TSDocIgnore = require_typescript_components_tsdoc.TSDocIgnore;
|
|
46
|
+
exports.TSDocInternal = require_typescript_components_tsdoc.TSDocInternal;
|
|
47
|
+
exports.TSDocLink = require_typescript_components_tsdoc.TSDocLink;
|
|
48
|
+
exports.TSDocModule = require_typescript_components_tsdoc.TSDocModule;
|
|
49
|
+
exports.TSDocParam = require_typescript_components_tsdoc.TSDocParam;
|
|
50
|
+
exports.TSDocParams = require_typescript_components_tsdoc.TSDocParams;
|
|
51
|
+
exports.TSDocPermission = require_typescript_components_tsdoc.TSDocPermission;
|
|
52
|
+
exports.TSDocReadonly = require_typescript_components_tsdoc.TSDocReadonly;
|
|
53
|
+
exports.TSDocReflectionClass = require_typescript_components_tsdoc_reflection.TSDocReflectionClass;
|
|
54
|
+
exports.TSDocReflectionMethod = require_typescript_components_tsdoc_reflection.TSDocReflectionMethod;
|
|
55
|
+
exports.TSDocReflectionProperty = require_typescript_components_tsdoc_reflection.TSDocReflectionProperty;
|
|
56
|
+
exports.TSDocRemarks = require_typescript_components_tsdoc.TSDocRemarks;
|
|
57
|
+
exports.TSDocReturns = require_typescript_components_tsdoc.TSDocReturns;
|
|
58
|
+
exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
59
|
+
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
60
|
+
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
61
|
+
exports.TypeDeclaration = require_typescript_components_type_declaration.TypeDeclaration;
|
|
62
|
+
exports.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
|
|
63
|
+
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
64
|
+
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
65
|
+
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./tsdoc.cjs";
|
|
2
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
+
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./builtin-file.cjs";
|
|
4
|
+
import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./type-parameters.cjs";
|
|
5
|
+
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./class-declaration.cjs";
|
|
6
|
+
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.cjs";
|
|
7
|
+
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.cjs";
|
|
8
|
+
import { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps } from "./infrastructure-file.cjs";
|
|
9
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./interface-declaration.cjs";
|
|
10
|
+
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./object-declaration.cjs";
|
|
11
|
+
import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./property-name.cjs";
|
|
12
|
+
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.cjs";
|
|
13
|
+
import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps } from "./tsdoc-reflection.cjs";
|
|
14
|
+
import { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps } from "./type-declaration.cjs";
|
|
15
|
+
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InfrastructureFile, InfrastructureFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩInfrastructureFileProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./tsdoc.mjs";
|
|
2
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
+
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./builtin-file.mjs";
|
|
4
|
+
import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./type-parameters.mjs";
|
|
5
|
+
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./class-declaration.mjs";
|
|
6
|
+
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.mjs";
|
|
7
|
+
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.mjs";
|
|
8
|
+
import { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps } from "./infrastructure-file.mjs";
|
|
9
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./interface-declaration.mjs";
|
|
10
|
+
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./object-declaration.mjs";
|
|
11
|
+
import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./property-name.mjs";
|
|
12
|
+
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.mjs";
|
|
13
|
+
import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps } from "./tsdoc-reflection.mjs";
|
|
14
|
+
import { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps } from "./type-declaration.mjs";
|
|
15
|
+
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InfrastructureFile, InfrastructureFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩInfrastructureFileProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle } from "./tsdoc.mjs";
|
|
2
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript-file.mjs";
|
|
3
|
+
import { BuiltinFile } from "./builtin-file.mjs";
|
|
4
|
+
import { PropertyName } from "./property-name.mjs";
|
|
5
|
+
import { TypeParameters } from "./type-parameters.mjs";
|
|
6
|
+
import { ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet } from "./class-declaration.mjs";
|
|
7
|
+
import { DynamicImportStatement } from "./dynamic-import-statement.mjs";
|
|
8
|
+
import { EntryFile } from "./entry-file.mjs";
|
|
9
|
+
import { InfrastructureFile } from "./infrastructure-file.mjs";
|
|
10
|
+
import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
11
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember } from "./interface-declaration.mjs";
|
|
12
|
+
import { ObjectDeclaration, ObjectDeclarationProperty } from "./object-declaration.mjs";
|
|
13
|
+
import { RecordExpression } from "./record-expression.mjs";
|
|
14
|
+
import { TypeDeclaration } from "./type-declaration.mjs";
|
|
15
|
+
|
|
16
|
+
export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet, DynamicImportStatement, EntryFile, InfrastructureFile, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember, ObjectDeclaration, ObjectDeclarationProperty, PropertyName, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeDeclaration, TypeParameters, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
4
|
+
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
5
|
+
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
6
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
8
|
+
let _stryke_path_append = require("@stryke/path/append");
|
|
9
|
+
let defu = require("defu");
|
|
10
|
+
defu = require_runtime.__toESM(defu);
|
|
11
|
+
let _stryke_path_replace = require("@stryke/path/replace");
|
|
12
|
+
|
|
13
|
+
//#region src/typescript/components/infrastructure-file.tsx
|
|
14
|
+
/**
|
|
15
|
+
* A base component representing a Powerlines generated Typescript infrastructure file.
|
|
16
|
+
*
|
|
17
|
+
* @param props - The properties for the infrastructure file.
|
|
18
|
+
* @returns The rendered infrastructure file component.
|
|
19
|
+
*/
|
|
20
|
+
function InfrastructureFile(props) {
|
|
21
|
+
const [{ children, meta, id }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
22
|
+
"children",
|
|
23
|
+
"meta",
|
|
24
|
+
"id"
|
|
25
|
+
]);
|
|
26
|
+
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
27
|
+
const fullPath = (0, _alloy_js_core.computed)(() => context ? (0, _stryke_path_append.appendPath)((0, _stryke_path_file_path_fns.hasFileExtension)(id) ? "" : ".ts", (0, _stryke_path_replace.replacePath)(context.infrastructurePath, context.workspaceConfig.workspaceRoot)) : id);
|
|
28
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
29
|
+
get path() {
|
|
30
|
+
return fullPath.value;
|
|
31
|
+
},
|
|
32
|
+
get meta() {
|
|
33
|
+
return (0, defu.default)({ kind: "infrastructure" }, meta ?? {});
|
|
34
|
+
},
|
|
35
|
+
children
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.InfrastructureFile = InfrastructureFile;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/infrastructure-file.d.ts
|
|
5
|
+
type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
|
|
6
|
+
/**
|
|
7
|
+
* The infrastructure module identifier.
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A base component representing a Powerlines generated Typescript infrastructure file.
|
|
13
|
+
*
|
|
14
|
+
* @param props - The properties for the infrastructure file.
|
|
15
|
+
* @returns The rendered infrastructure file component.
|
|
16
|
+
*/
|
|
17
|
+
declare function InfrastructureFile(props: InfrastructureFileProps): _alloy_js_core0.Children;
|
|
18
|
+
declare type __ΩInfrastructureFileProps = any[];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps };
|
|
21
|
+
//# sourceMappingURL=infrastructure-file.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infrastructure-file.d.cts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"mappings":";;;;KA0BY,uBAAA,GAA0B,IAAA,CAAK,mBAAA;;;AAA3C;EAIE,EAAA;AAAA;;;;;;;iBASc,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/infrastructure-file.d.ts
|
|
5
|
+
type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
|
|
6
|
+
/**
|
|
7
|
+
* The infrastructure module identifier.
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A base component representing a Powerlines generated Typescript infrastructure file.
|
|
13
|
+
*
|
|
14
|
+
* @param props - The properties for the infrastructure file.
|
|
15
|
+
* @returns The rendered infrastructure file component.
|
|
16
|
+
*/
|
|
17
|
+
declare function InfrastructureFile(props: InfrastructureFileProps): _alloy_js_core0.Children;
|
|
18
|
+
declare type __ΩInfrastructureFileProps = any[];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps };
|
|
21
|
+
//# sourceMappingURL=infrastructure-file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infrastructure-file.d.mts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"mappings":";;;;KA0BY,uBAAA,GAA0B,IAAA,CAAK,mBAAA;;;AAA3C;EAIE,EAAA;AAAA;;;;;;;iBASc,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
+
import { TypescriptFile } from "./typescript-file.mjs";
|
|
3
|
+
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
4
|
+
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
|
+
import { computed, splitProps } from "@alloy-js/core";
|
|
6
|
+
import { appendPath } from "@stryke/path/append";
|
|
7
|
+
import defu from "defu";
|
|
8
|
+
import { replacePath } from "@stryke/path/replace";
|
|
9
|
+
|
|
10
|
+
//#region src/typescript/components/infrastructure-file.tsx
|
|
11
|
+
/**
|
|
12
|
+
* A base component representing a Powerlines generated Typescript infrastructure file.
|
|
13
|
+
*
|
|
14
|
+
* @param props - The properties for the infrastructure file.
|
|
15
|
+
* @returns The rendered infrastructure file component.
|
|
16
|
+
*/
|
|
17
|
+
function InfrastructureFile(props) {
|
|
18
|
+
const [{ children, meta, id }, rest] = splitProps(props, [
|
|
19
|
+
"children",
|
|
20
|
+
"meta",
|
|
21
|
+
"id"
|
|
22
|
+
]);
|
|
23
|
+
const context = usePowerlinesSafe();
|
|
24
|
+
const fullPath = computed(() => context ? appendPath(hasFileExtension(id) ? "" : ".ts", replacePath(context.infrastructurePath, context.workspaceConfig.workspaceRoot)) : id);
|
|
25
|
+
return createComponent(TypescriptFile, mergeProps(rest, {
|
|
26
|
+
get path() {
|
|
27
|
+
return fullPath.value;
|
|
28
|
+
},
|
|
29
|
+
get meta() {
|
|
30
|
+
return defu({ kind: "infrastructure" }, meta ?? {});
|
|
31
|
+
},
|
|
32
|
+
children
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { InfrastructureFile };
|
|
38
|
+
//# sourceMappingURL=infrastructure-file.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infrastructure-file.mjs","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { TypescriptFile, TypescriptFileProps } from \"./typescript-file\";\n\nexport type InfrastructureFileProps = Omit<TypescriptFileProps, \"path\"> & {\n /**\n * The infrastructure module identifier.\n */\n id: string;\n};\n\n/**\n * A base component representing a Powerlines generated Typescript infrastructure file.\n *\n * @param props - The properties for the infrastructure file.\n * @returns The rendered infrastructure file component.\n */\nexport function InfrastructureFile(props: InfrastructureFileProps) {\n const [{ children, meta, id }, rest] = splitProps(props, [\n \"children\",\n \"meta\",\n \"id\"\n ]);\n\n const context = usePowerlinesSafe();\n const fullPath = computed(() =>\n context\n ? appendPath(\n hasFileExtension(id) ? \"\" : \".ts\",\n replacePath(\n context.infrastructurePath,\n context.workspaceConfig.workspaceRoot\n )\n )\n : id\n );\n\n return (\n <TypescriptFile\n {...rest}\n path={fullPath.value}\n meta={defu(\n {\n kind: \"infrastructure\"\n },\n meta ?? {}\n )}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAuCA,SAAgB,mBAAmB,OAAgC;CACjE,MAAM,CAAC,EACL,UACA,MACA,MACA,QAAA,WAAA,OAAA;EAAA;EAAA;EAAA;EAAA,CAAA;;CAEF,MAAM,WAAU,eAAA,UAAmB,WAAA,iBAAA,GAAA,GAAA,KAAA,OAAA,YAAA,QAAA,oBAAA,QAAA,gBAAA,cAAA,CAAA,GAAA,GAAA;AACnC,QAAM,gBAAmB,gBAAK,WAAA,MAAA;EAC5B,IAAA,OAAA;AACE,UAAE,SAAU;;EAEd,IAAI,OAAE;AACJ,UAAM,KAAA,EACJ,MAAI,kBACL,EAAE,QAAC,EAAA,CAAA;;EAEF;EACL,CAAA,CAAA"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
4
|
+
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
5
|
+
const require_typescript_contexts_member_scope = require('../contexts/member-scope.cjs');
|
|
6
|
+
const require_typescript_components_property_name = require('./property-name.cjs');
|
|
7
|
+
const require_typescript_components_type_parameters = require('./type-parameters.cjs');
|
|
8
|
+
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
9
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
10
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
11
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
12
|
+
let _stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
|
|
13
|
+
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
14
|
+
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
15
|
+
|
|
16
|
+
//#region src/typescript/components/interface-declaration.tsx
|
|
17
|
+
const InterfaceExpression = (0, _alloy_js_typescript.ensureTypeRefContext)(function InterfaceExpression(props) {
|
|
18
|
+
const symbol = (0, _alloy_js_core.createSymbol)(_alloy_js_typescript.TSOutputSymbol, "", void 0, {
|
|
19
|
+
transient: true,
|
|
20
|
+
binder: (0, _alloy_js_typescript.useTSLexicalScope)()?.binder
|
|
21
|
+
});
|
|
22
|
+
(0, _alloy_js_core.emitSymbol)(symbol);
|
|
23
|
+
return (0, _alloy_js_core_jsx_runtime.createIntrinsic)("group", { get children() {
|
|
24
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_member_scope.MemberScope, {
|
|
25
|
+
ownerSymbol: symbol,
|
|
26
|
+
get children() {
|
|
27
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
|
|
28
|
+
return props.children;
|
|
29
|
+
} });
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
} });
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* Create a TypeScript interface member.
|
|
36
|
+
*
|
|
37
|
+
* An interface member can either provide a `name` prop to create a named
|
|
38
|
+
* property, or an `indexer` prop to define an indexer for the interface.
|
|
39
|
+
*
|
|
40
|
+
* The type of the member can be provided either as the `type` prop or as the
|
|
41
|
+
* children of the component.
|
|
42
|
+
*/
|
|
43
|
+
function InterfaceMember(props) {
|
|
44
|
+
const type = props.type ?? props.children;
|
|
45
|
+
const readonly = props.readonly ? "readonly " : "";
|
|
46
|
+
if ("indexer" in props) return [
|
|
47
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
48
|
+
get when() {
|
|
49
|
+
return Boolean(props.doc);
|
|
50
|
+
},
|
|
51
|
+
get children() {
|
|
52
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
|
|
53
|
+
return props.doc;
|
|
54
|
+
} });
|
|
55
|
+
}
|
|
56
|
+
}),
|
|
57
|
+
readonly,
|
|
58
|
+
"[",
|
|
59
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => props.indexer),
|
|
60
|
+
"]: ",
|
|
61
|
+
type
|
|
62
|
+
];
|
|
63
|
+
const optionality = props.optional ? "?" : "";
|
|
64
|
+
const scope = (0, _alloy_js_typescript.useTSMemberScope)();
|
|
65
|
+
const sym = (0, _alloy_js_core.createSymbol)(_alloy_js_typescript.TSOutputSymbol, props.name, scope.ownerSymbol.staticMembers, {
|
|
66
|
+
refkeys: props.refkey,
|
|
67
|
+
tsFlags: _alloy_js_typescript.TSSymbolFlags.TypeSymbol | (props.nullish ?? props.optional ? _alloy_js_typescript.TSSymbolFlags.Nullish : _alloy_js_typescript.TSSymbolFlags.None),
|
|
68
|
+
namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("interface-member"),
|
|
69
|
+
binder: scope.binder
|
|
70
|
+
});
|
|
71
|
+
const taken = (0, _alloy_js_core.takeSymbols)();
|
|
72
|
+
(0, _alloy_js_core.effect)(() => {
|
|
73
|
+
if (taken.size > 1) return;
|
|
74
|
+
const symbol = Array.from(taken)[0];
|
|
75
|
+
if (symbol?.isTransient) symbol.moveMembersTo(sym);
|
|
76
|
+
});
|
|
77
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.MemberDeclaration, {
|
|
78
|
+
symbol: sym,
|
|
79
|
+
get children() {
|
|
80
|
+
return [
|
|
81
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
82
|
+
get when() {
|
|
83
|
+
return Boolean(props.doc);
|
|
84
|
+
},
|
|
85
|
+
get children() {
|
|
86
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
|
|
87
|
+
return props.doc;
|
|
88
|
+
} });
|
|
89
|
+
}
|
|
90
|
+
}),
|
|
91
|
+
readonly,
|
|
92
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {}),
|
|
93
|
+
optionality,
|
|
94
|
+
": ",
|
|
95
|
+
type
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
const BaseInterfaceDeclaration = (0, _alloy_js_typescript.ensureTypeRefContext)(function InterfaceDeclaration(props) {
|
|
101
|
+
const ExprSlot = (0, _alloy_js_core.createSymbolSlot)();
|
|
102
|
+
const children = (0, _alloy_js_core.childrenArray)(() => props.children);
|
|
103
|
+
const extendsPart = props.extends ? [" extends ", (0, _alloy_js_core_jsx_runtime.memo)(() => props.extends)] : "";
|
|
104
|
+
const filteredChildren = (0, _alloy_js_core.findUnkeyedChildren)(children);
|
|
105
|
+
const currentScope = (0, _alloy_js_typescript.useTSLexicalScope)();
|
|
106
|
+
const binder = currentScope?.binder;
|
|
107
|
+
const sym = (0, _alloy_js_core.createSymbol)(_alloy_js_typescript.TSOutputSymbol, props.name, currentScope.types, {
|
|
108
|
+
refkeys: props.refkey,
|
|
109
|
+
default: props.default,
|
|
110
|
+
export: props.export,
|
|
111
|
+
metadata: props.metadata,
|
|
112
|
+
tsFlags: _alloy_js_typescript.TSSymbolFlags.TypeSymbol,
|
|
113
|
+
namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("interface"),
|
|
114
|
+
binder
|
|
115
|
+
});
|
|
116
|
+
(0, _alloy_js_core.effect)(() => {
|
|
117
|
+
if (ExprSlot.ref.value) {
|
|
118
|
+
const takenSymbols = ExprSlot.ref.value;
|
|
119
|
+
for (const symbol of takenSymbols) if (symbol.isTransient) symbol.moveMembersTo(sym);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
123
|
+
get when() {
|
|
124
|
+
return Boolean(props.doc);
|
|
125
|
+
},
|
|
126
|
+
get children() {
|
|
127
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
|
|
128
|
+
return props.doc;
|
|
129
|
+
} });
|
|
130
|
+
}
|
|
131
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.Declaration, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, {
|
|
132
|
+
nameKind: "interface",
|
|
133
|
+
kind: "type",
|
|
134
|
+
symbol: sym,
|
|
135
|
+
get children() {
|
|
136
|
+
return [
|
|
137
|
+
"interface ",
|
|
138
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Name, {}),
|
|
139
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => (0, _alloy_js_core_jsx_runtime.memo)(() => !!props.typeParameters)() && (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_type_parameters.TypeParameters, { get parameters() {
|
|
140
|
+
return props.typeParameters;
|
|
141
|
+
} })),
|
|
142
|
+
extendsPart,
|
|
143
|
+
" ",
|
|
144
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(ExprSlot, { get children() {
|
|
145
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(InterfaceExpression, { children: filteredChildren });
|
|
146
|
+
} })
|
|
147
|
+
];
|
|
148
|
+
}
|
|
149
|
+
}))];
|
|
150
|
+
});
|
|
151
|
+
/**
|
|
152
|
+
* Generates a TypeScript interface for the given reflection class.
|
|
153
|
+
*/
|
|
154
|
+
function InterfaceDeclaration(props) {
|
|
155
|
+
const [{ name, reflection, doc }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
156
|
+
"name",
|
|
157
|
+
"reflection",
|
|
158
|
+
"doc"
|
|
159
|
+
]);
|
|
160
|
+
const interfaceName = (0, _alloy_js_core.computed)(() => (0, _stryke_string_format_pascal_case.pascalCase)(((0, _stryke_type_checks_is_string.isString)(name) ? name : name.toString()) || reflection?.getName()));
|
|
161
|
+
const properties = (0, _alloy_js_core.computed)(() => reflection ? reflection.getProperties().filter((item) => !item.isIgnored()).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1) : []);
|
|
162
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
163
|
+
get when() {
|
|
164
|
+
return reflection && properties.value.length > 0;
|
|
165
|
+
},
|
|
166
|
+
get fallback() {
|
|
167
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(BaseInterfaceDeclaration, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get name() {
|
|
168
|
+
return interfaceName.value;
|
|
169
|
+
} }));
|
|
170
|
+
},
|
|
171
|
+
get children() {
|
|
172
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
|
|
173
|
+
value: { reflection },
|
|
174
|
+
get children() {
|
|
175
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, {
|
|
176
|
+
heading: doc,
|
|
177
|
+
reflection
|
|
178
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(BaseInterfaceDeclaration, (0, _alloy_js_core_jsx_runtime.mergeProps)({
|
|
179
|
+
"export": true,
|
|
180
|
+
get name() {
|
|
181
|
+
return interfaceName.value;
|
|
182
|
+
}
|
|
183
|
+
}, rest, { get children() {
|
|
184
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
185
|
+
each: properties,
|
|
186
|
+
doubleHardline: true,
|
|
187
|
+
semicolon: true,
|
|
188
|
+
children: (prop) => (0, _alloy_js_core_jsx_runtime.createComponent)(InterfaceDeclarationProperty, { property: prop })
|
|
189
|
+
});
|
|
190
|
+
} }))];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
198
|
+
*/
|
|
199
|
+
function InterfaceDeclarationProperty(props) {
|
|
200
|
+
const [{ property }, rest] = (0, _alloy_js_core.splitProps)(props, ["property"]);
|
|
201
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
|
|
202
|
+
value: property,
|
|
203
|
+
get children() {
|
|
204
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocContextProperty, {}), (0, _alloy_js_core_jsx_runtime.createComponent)(InterfaceMember, (0, _alloy_js_core_jsx_runtime.mergeProps)({
|
|
205
|
+
get name() {
|
|
206
|
+
return property.getNameAsString();
|
|
207
|
+
},
|
|
208
|
+
get readonly() {
|
|
209
|
+
return property.isReadonly();
|
|
210
|
+
},
|
|
211
|
+
get optional() {
|
|
212
|
+
return property.isOptional();
|
|
213
|
+
},
|
|
214
|
+
get nullish() {
|
|
215
|
+
return property.isNullable();
|
|
216
|
+
},
|
|
217
|
+
get type() {
|
|
218
|
+
return (0, _powerlines_deepkit_vendor_type.stringifyType)(property.getType());
|
|
219
|
+
}
|
|
220
|
+
}, rest))];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
//#endregion
|
|
226
|
+
exports.InterfaceDeclaration = InterfaceDeclaration;
|
|
227
|
+
exports.InterfaceDeclarationProperty = InterfaceDeclarationProperty;
|
|
228
|
+
exports.InterfaceExpression = InterfaceExpression;
|
|
229
|
+
exports.InterfaceMember = InterfaceMember;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
+
import { Children, Namekey, Refkey } from "@alloy-js/core";
|
|
4
|
+
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
|
+
import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
6
|
+
|
|
7
|
+
//#region src/typescript/components/interface-declaration.d.ts
|
|
8
|
+
interface InterfaceDeclarationProps<T extends Record<string, any> = Record<string, any>> extends CommonDeclarationProps, ComponentProps {
|
|
9
|
+
/**
|
|
10
|
+
* A base type that this interface extends. This can be used to represent inheritance
|
|
11
|
+
*/
|
|
12
|
+
extends?: Children;
|
|
13
|
+
/**
|
|
14
|
+
* The generic type parameters of the interface.
|
|
15
|
+
*/
|
|
16
|
+
typeParameters?: TypeParameterDescriptor[] | string[];
|
|
17
|
+
/**
|
|
18
|
+
* The reflection class that describes the properties of this interface.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* This is used to generate the members of the interface based on the properties of the reflection class.
|
|
22
|
+
*/
|
|
23
|
+
reflection?: ReflectionClass<T>;
|
|
24
|
+
/**
|
|
25
|
+
* A default value for this interface.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This is used when the interface is used as a type for a variable declaration, to provide an initial value for the variable.
|
|
29
|
+
*/
|
|
30
|
+
defaultValue?: Partial<T>;
|
|
31
|
+
/**
|
|
32
|
+
* Documentation for the interface. This can be a string or any Alloy component that renders documentation content (such as `TSDoc`).
|
|
33
|
+
*/
|
|
34
|
+
doc?: Children;
|
|
35
|
+
}
|
|
36
|
+
interface InterfaceDeclarationPropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
|
|
37
|
+
property: ReflectionProperty;
|
|
38
|
+
}
|
|
39
|
+
interface InterfaceExpressionProps {
|
|
40
|
+
children?: Children;
|
|
41
|
+
}
|
|
42
|
+
declare const InterfaceExpression: _alloy_js_core0.Component<InterfaceExpressionProps>;
|
|
43
|
+
interface InterfaceMemberPropsBase {
|
|
44
|
+
type?: Children;
|
|
45
|
+
children?: Children;
|
|
46
|
+
readonly?: boolean;
|
|
47
|
+
doc?: Children;
|
|
48
|
+
refkey?: Refkey | Refkey[];
|
|
49
|
+
}
|
|
50
|
+
interface InterfacePropertyMemberProps extends InterfaceMemberPropsBase {
|
|
51
|
+
name: string | Namekey;
|
|
52
|
+
optional?: boolean;
|
|
53
|
+
nullish?: boolean;
|
|
54
|
+
}
|
|
55
|
+
interface InterfaceIndexerMemberProps extends InterfaceMemberPropsBase {
|
|
56
|
+
indexer: Children;
|
|
57
|
+
}
|
|
58
|
+
type InterfaceMemberProps = InterfacePropertyMemberProps | InterfaceIndexerMemberProps;
|
|
59
|
+
/**
|
|
60
|
+
* Create a TypeScript interface member.
|
|
61
|
+
*
|
|
62
|
+
* An interface member can either provide a `name` prop to create a named
|
|
63
|
+
* property, or an `indexer` prop to define an indexer for the interface.
|
|
64
|
+
*
|
|
65
|
+
* The type of the member can be provided either as the `type` prop or as the
|
|
66
|
+
* children of the component.
|
|
67
|
+
*/
|
|
68
|
+
declare function InterfaceMember(props: InterfaceMemberProps): Children;
|
|
69
|
+
/**
|
|
70
|
+
* Generates a TypeScript interface for the given reflection class.
|
|
71
|
+
*/
|
|
72
|
+
declare function InterfaceDeclaration<T extends Record<string, any> = Record<string, any>>(props: InterfaceDeclarationProps<T>): Children;
|
|
73
|
+
/**
|
|
74
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
75
|
+
*/
|
|
76
|
+
declare function InterfaceDeclarationProperty(props: InterfaceDeclarationPropertyProps): Children;
|
|
77
|
+
declare type __ΩInterfaceDeclarationProps = any[];
|
|
78
|
+
declare type __ΩInterfaceDeclarationPropertyProps = any[];
|
|
79
|
+
declare type __ΩInterfaceExpressionProps = any[];
|
|
80
|
+
declare type __ΩInterfaceMemberPropsBase = any[];
|
|
81
|
+
declare type __ΩInterfacePropertyMemberProps = any[];
|
|
82
|
+
declare type __ΩInterfaceIndexerMemberProps = any[];
|
|
83
|
+
declare type __ΩInterfaceMemberProps = any[];
|
|
84
|
+
//#endregion
|
|
85
|
+
export { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps };
|
|
86
|
+
//# sourceMappingURL=interface-declaration.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/interface-declaration.tsx"],"mappings":";;;;;;;UAkEiB,yBAAA,WACL,MAAA,gBAAsB,MAAA,uBAExB,sBAAA,EAAwB,cAAA;;;AAHlC;EAOE,OAAA,GAAU,QAAA;EAP8B;;;EAYxC,cAAA,GAAiB,uBAAA;EAAA;;;;;;EAQjB,UAAA,GAAa,eAAA,CAAgB,CAAA;EAjBG;;;;;;EAyBhC,YAAA,GAAe,OAAA,CAAQ,CAAA;EAzBS;;;EA8BhC,GAAA,GAAM,QAAA;AAAA;AAAA,UAGS,iCAAA,SACP,IAAA,CAAK,oBAAA,WAA+B,cAAA;EAC5C,QAAA,EAAU,kBAAA;AAAA;AAAA,UAGK,wBAAA;EACf,QAAA,GAAW,QAAA;AAAA;AAAA,cAGA,mBAAA,EAAmB,eAAA,CAAA,SAAA,CAAA,wBAAA;AAAA,UAoBf,wBAAA;EACf,IAAA,GAAO,QAAA;EACP,QAAA,GAAW,QAAA;EACX,QAAA;EACA,GAAA,GAAM,QAAA;EACN,MAAA,GAAS,MAAA,GAAS,MAAA;AAAA;AAAA,UAEH,4BAAA,SAAqC,wBAAA;EACpD,IAAA,WAAe,OAAA;EACf,QAAA;EACA,OAAA;AAAA;AAAA,UAGe,2BAAA,SAAoC,wBAAA;EACnD,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,oBAAA,GACR,4BAAA,GACA,2BAAA;;;;AA3CJ;;;;;AAIA;iBAkDgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,QAAA;;;;iBA+G3C,oBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,yBAAA,CAA0B,CAAA,IAAE,QAAA;;;;iBAwDrB,4BAAA,CACd,KAAA,EAAO,iCAAA,GAAiC,QAAA;AAAA"}
|