@powerlines/plugin-alloy 0.26.49 → 0.26.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/package.json +6 -6
- package/dist/_virtual/_rolldown/runtime.cjs +0 -1
- package/dist/core/components/index.cjs +0 -1
- package/dist/core/components/index.d.cts +0 -6
- package/dist/core/components/index.d.mts +0 -6
- package/dist/core/components/index.mjs +0 -1
- package/dist/core/components/infrastructure-file.cjs +0 -1
- package/dist/core/components/infrastructure-file.d.cts +0 -27
- package/dist/core/components/infrastructure-file.d.cts.map +0 -1
- package/dist/core/components/infrastructure-file.d.mts +0 -27
- package/dist/core/components/infrastructure-file.d.mts.map +0 -1
- package/dist/core/components/infrastructure-file.mjs +0 -2
- package/dist/core/components/infrastructure-file.mjs.map +0 -1
- package/dist/core/components/output.cjs +0 -1
- package/dist/core/components/output.d.cts +0 -23
- package/dist/core/components/output.d.cts.map +0 -1
- package/dist/core/components/output.d.mts +0 -23
- package/dist/core/components/output.d.mts.map +0 -1
- package/dist/core/components/output.mjs +0 -2
- package/dist/core/components/output.mjs.map +0 -1
- package/dist/core/components/single-line-comment.cjs +0 -1
- package/dist/core/components/single-line-comment.d.cts +0 -21
- package/dist/core/components/single-line-comment.d.cts.map +0 -1
- package/dist/core/components/single-line-comment.d.mts +0 -21
- package/dist/core/components/single-line-comment.d.mts.map +0 -1
- package/dist/core/components/single-line-comment.mjs +0 -2
- package/dist/core/components/single-line-comment.mjs.map +0 -1
- package/dist/core/components/source-file.cjs +0 -1
- package/dist/core/components/source-file.d.cts +0 -32
- package/dist/core/components/source-file.d.cts.map +0 -1
- package/dist/core/components/source-file.d.mts +0 -32
- package/dist/core/components/source-file.d.mts.map +0 -1
- package/dist/core/components/source-file.mjs +0 -2
- package/dist/core/components/source-file.mjs.map +0 -1
- package/dist/core/components/spacing.cjs +0 -1
- package/dist/core/components/spacing.d.cts +0 -23
- package/dist/core/components/spacing.d.cts.map +0 -1
- package/dist/core/components/spacing.d.mts +0 -23
- package/dist/core/components/spacing.d.mts.map +0 -1
- package/dist/core/components/spacing.mjs +0 -2
- package/dist/core/components/spacing.mjs.map +0 -1
- package/dist/core/contexts/context.cjs +0 -1
- package/dist/core/contexts/context.d.cts +0 -29
- package/dist/core/contexts/context.d.cts.map +0 -1
- package/dist/core/contexts/context.d.mts +0 -29
- package/dist/core/contexts/context.d.mts.map +0 -1
- package/dist/core/contexts/context.mjs +0 -2
- package/dist/core/contexts/context.mjs.map +0 -1
- package/dist/core/contexts/index.cjs +0 -1
- package/dist/core/contexts/index.d.cts +0 -4
- package/dist/core/contexts/index.d.mts +0 -4
- package/dist/core/contexts/index.mjs +0 -1
- package/dist/core/contexts/meta.cjs +0 -1
- package/dist/core/contexts/meta.d.cts +0 -47
- package/dist/core/contexts/meta.d.cts.map +0 -1
- package/dist/core/contexts/meta.d.mts +0 -47
- package/dist/core/contexts/meta.d.mts.map +0 -1
- package/dist/core/contexts/meta.mjs +0 -2
- package/dist/core/contexts/meta.mjs.map +0 -1
- package/dist/core/contexts/reflection.cjs +0 -1
- package/dist/core/contexts/reflection.d.cts +0 -62
- package/dist/core/contexts/reflection.d.cts.map +0 -1
- package/dist/core/contexts/reflection.d.mts +0 -62
- package/dist/core/contexts/reflection.d.mts.map +0 -1
- package/dist/core/contexts/reflection.mjs +0 -2
- package/dist/core/contexts/reflection.mjs.map +0 -1
- package/dist/core/helpers/code.cjs +0 -1
- package/dist/core/helpers/code.d.cts +0 -29
- package/dist/core/helpers/code.d.cts.map +0 -1
- package/dist/core/helpers/code.d.mts +0 -29
- package/dist/core/helpers/code.d.mts.map +0 -1
- package/dist/core/helpers/code.mjs +0 -2
- package/dist/core/helpers/code.mjs.map +0 -1
- package/dist/core/helpers/index.cjs +0 -1
- package/dist/core/helpers/index.d.cts +0 -2
- package/dist/core/helpers/index.d.mts +0 -2
- package/dist/core/helpers/index.mjs +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/core/index.d.cts +0 -10
- package/dist/core/index.d.mts +0 -10
- package/dist/core/index.mjs +0 -1
- package/dist/hcl/components/block-declaration.cjs +0 -1
- package/dist/hcl/components/block-declaration.d.cts +0 -21
- package/dist/hcl/components/block-declaration.d.cts.map +0 -1
- package/dist/hcl/components/block-declaration.d.mts +0 -21
- package/dist/hcl/components/block-declaration.d.mts.map +0 -1
- package/dist/hcl/components/block-declaration.mjs +0 -2
- package/dist/hcl/components/block-declaration.mjs.map +0 -1
- package/dist/hcl/components/hcl-file.cjs +0 -1
- package/dist/hcl/components/hcl-file.d.cts +0 -26
- package/dist/hcl/components/hcl-file.d.cts.map +0 -1
- package/dist/hcl/components/hcl-file.d.mts +0 -26
- package/dist/hcl/components/hcl-file.d.mts.map +0 -1
- package/dist/hcl/components/hcl-file.mjs +0 -2
- package/dist/hcl/components/hcl-file.mjs.map +0 -1
- package/dist/hcl/components/index.cjs +0 -1
- package/dist/hcl/components/index.d.cts +0 -5
- package/dist/hcl/components/index.d.mts +0 -5
- package/dist/hcl/components/index.mjs +0 -1
- package/dist/hcl/components/packer-file.cjs +0 -1
- package/dist/hcl/components/packer-file.d.cts +0 -18
- package/dist/hcl/components/packer-file.d.cts.map +0 -1
- package/dist/hcl/components/packer-file.d.mts +0 -18
- package/dist/hcl/components/packer-file.d.mts.map +0 -1
- package/dist/hcl/components/packer-file.mjs +0 -2
- package/dist/hcl/components/packer-file.mjs.map +0 -1
- package/dist/hcl/components/terraform-file.cjs +0 -1
- package/dist/hcl/components/terraform-file.d.cts +0 -19
- package/dist/hcl/components/terraform-file.d.cts.map +0 -1
- package/dist/hcl/components/terraform-file.d.mts +0 -19
- package/dist/hcl/components/terraform-file.d.mts.map +0 -1
- package/dist/hcl/components/terraform-file.mjs +0 -2
- package/dist/hcl/components/terraform-file.mjs.map +0 -1
- package/dist/hcl/index.cjs +0 -1
- package/dist/hcl/index.d.cts +0 -5
- package/dist/hcl/index.d.mts +0 -5
- package/dist/hcl/index.mjs +0 -1
- package/dist/helpers/capnp.cjs +0 -69
- package/dist/helpers/capnp.d.cts +0 -83
- package/dist/helpers/capnp.d.cts.map +0 -1
- package/dist/helpers/capnp.d.mts +0 -83
- package/dist/helpers/capnp.d.mts.map +0 -1
- package/dist/helpers/capnp.mjs +0 -70
- package/dist/helpers/capnp.mjs.map +0 -1
- package/dist/helpers/create-builtin.cjs +0 -1
- package/dist/helpers/create-builtin.d.cts +0 -15
- package/dist/helpers/create-builtin.d.cts.map +0 -1
- package/dist/helpers/create-builtin.d.mts +0 -15
- package/dist/helpers/create-builtin.d.mts.map +0 -1
- package/dist/helpers/create-builtin.mjs +0 -2
- package/dist/helpers/create-builtin.mjs.map +0 -1
- package/dist/helpers/index.cjs +0 -1
- package/dist/helpers/index.d.cts +0 -5
- package/dist/helpers/index.d.mts +0 -5
- package/dist/helpers/index.mjs +0 -1
- package/dist/helpers/refkey.cjs +0 -1
- package/dist/helpers/refkey.d.cts +0 -13
- package/dist/helpers/refkey.d.cts.map +0 -1
- package/dist/helpers/refkey.d.mts +0 -13
- package/dist/helpers/refkey.d.mts.map +0 -1
- package/dist/helpers/refkey.mjs +0 -2
- package/dist/helpers/refkey.mjs.map +0 -1
- package/dist/helpers/typescript.cjs +0 -24
- package/dist/helpers/typescript.d.cts +0 -24
- package/dist/helpers/typescript.d.cts.map +0 -1
- package/dist/helpers/typescript.d.mts +0 -24
- package/dist/helpers/typescript.d.mts.map +0 -1
- package/dist/helpers/typescript.mjs +0 -25
- package/dist/helpers/typescript.mjs.map +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -19
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -19
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +0 -1
- package/dist/markdown/components/front-matter.cjs +0 -1
- package/dist/markdown/components/front-matter.d.cts +0 -15
- package/dist/markdown/components/front-matter.d.cts.map +0 -1
- package/dist/markdown/components/front-matter.d.mts +0 -15
- package/dist/markdown/components/front-matter.d.mts.map +0 -1
- package/dist/markdown/components/front-matter.mjs +0 -2
- package/dist/markdown/components/front-matter.mjs.map +0 -1
- package/dist/markdown/components/heading.cjs +0 -1
- package/dist/markdown/components/heading.d.cts +0 -19
- package/dist/markdown/components/heading.d.cts.map +0 -1
- package/dist/markdown/components/heading.d.mts +0 -19
- package/dist/markdown/components/heading.d.mts.map +0 -1
- package/dist/markdown/components/heading.mjs +0 -2
- package/dist/markdown/components/heading.mjs.map +0 -1
- package/dist/markdown/components/index.cjs +0 -1
- package/dist/markdown/components/index.d.cts +0 -5
- package/dist/markdown/components/index.d.mts +0 -5
- package/dist/markdown/components/index.mjs +0 -1
- package/dist/markdown/components/markdown-file.cjs +0 -1
- package/dist/markdown/components/markdown-file.d.cts +0 -27
- package/dist/markdown/components/markdown-file.d.cts.map +0 -1
- package/dist/markdown/components/markdown-file.d.mts +0 -27
- package/dist/markdown/components/markdown-file.d.mts.map +0 -1
- package/dist/markdown/components/markdown-file.mjs +0 -2
- package/dist/markdown/components/markdown-file.mjs.map +0 -1
- package/dist/markdown/components/markdown-table.cjs +0 -1
- package/dist/markdown/components/markdown-table.d.cts +0 -26
- package/dist/markdown/components/markdown-table.d.cts.map +0 -1
- package/dist/markdown/components/markdown-table.d.mts +0 -26
- package/dist/markdown/components/markdown-table.d.mts.map +0 -1
- package/dist/markdown/components/markdown-table.mjs +0 -2
- package/dist/markdown/components/markdown-table.mjs.map +0 -1
- package/dist/markdown/contexts/index.cjs +0 -1
- package/dist/markdown/contexts/index.d.cts +0 -2
- package/dist/markdown/contexts/index.d.mts +0 -2
- package/dist/markdown/contexts/index.mjs +0 -1
- package/dist/markdown/contexts/markdown-table.cjs +0 -1
- package/dist/markdown/contexts/markdown-table.d.cts +0 -36
- package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
- package/dist/markdown/contexts/markdown-table.d.mts +0 -36
- package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
- package/dist/markdown/contexts/markdown-table.mjs +0 -2
- package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
- package/dist/markdown/index.cjs +0 -1
- package/dist/markdown/index.d.cts +0 -6
- package/dist/markdown/index.d.mts +0 -6
- package/dist/markdown/index.mjs +0 -1
- package/dist/render.cjs +0 -1
- package/dist/render.d.cts +0 -38
- package/dist/render.d.cts.map +0 -1
- package/dist/render.d.mts +0 -38
- package/dist/render.d.mts.map +0 -1
- package/dist/render.mjs +0 -2
- package/dist/render.mjs.map +0 -1
- package/dist/types/components.cjs +0 -0
- package/dist/types/components.d.cts +0 -126
- package/dist/types/components.d.cts.map +0 -1
- package/dist/types/components.d.mts +0 -126
- package/dist/types/components.d.mts.map +0 -1
- package/dist/types/components.mjs +0 -2
- package/dist/types/components.mjs.map +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -3
- package/dist/types/index.d.mts +0 -3
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +0 -35
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -35
- package/dist/types/plugin.d.mts.map +0 -1
- package/dist/types/plugin.mjs +0 -1
- package/dist/typescript/components/builtin-file.cjs +0 -1
- package/dist/typescript/components/builtin-file.d.cts +0 -34
- package/dist/typescript/components/builtin-file.d.cts.map +0 -1
- package/dist/typescript/components/builtin-file.d.mts +0 -34
- package/dist/typescript/components/builtin-file.d.mts.map +0 -1
- package/dist/typescript/components/builtin-file.mjs +0 -2
- package/dist/typescript/components/builtin-file.mjs.map +0 -1
- package/dist/typescript/components/class-declaration.cjs +0 -1
- package/dist/typescript/components/class-declaration.d.cts +0 -140
- package/dist/typescript/components/class-declaration.d.cts.map +0 -1
- package/dist/typescript/components/class-declaration.d.mts +0 -140
- package/dist/typescript/components/class-declaration.d.mts.map +0 -1
- package/dist/typescript/components/class-declaration.mjs +0 -2
- package/dist/typescript/components/class-declaration.mjs.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +0 -1
- package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +0 -2
- package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
- package/dist/typescript/components/entry-file.cjs +0 -1
- package/dist/typescript/components/entry-file.d.cts +0 -27
- package/dist/typescript/components/entry-file.d.cts.map +0 -1
- package/dist/typescript/components/entry-file.d.mts +0 -27
- package/dist/typescript/components/entry-file.d.mts.map +0 -1
- package/dist/typescript/components/entry-file.mjs +0 -2
- package/dist/typescript/components/entry-file.mjs.map +0 -1
- package/dist/typescript/components/index.cjs +0 -1
- package/dist/typescript/components/index.d.cts +0 -14
- package/dist/typescript/components/index.d.mts +0 -14
- package/dist/typescript/components/index.mjs +0 -1
- package/dist/typescript/components/interface-declaration.cjs +0 -1
- package/dist/typescript/components/interface-declaration.d.cts +0 -80
- package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
- package/dist/typescript/components/interface-declaration.d.mts +0 -80
- package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
- package/dist/typescript/components/interface-declaration.mjs +0 -2
- package/dist/typescript/components/interface-declaration.mjs.map +0 -1
- package/dist/typescript/components/object-declaration.cjs +0 -1
- package/dist/typescript/components/object-declaration.d.cts +0 -28
- package/dist/typescript/components/object-declaration.d.cts.map +0 -1
- package/dist/typescript/components/object-declaration.d.mts +0 -28
- package/dist/typescript/components/object-declaration.d.mts.map +0 -1
- package/dist/typescript/components/object-declaration.mjs +0 -2
- package/dist/typescript/components/object-declaration.mjs.map +0 -1
- package/dist/typescript/components/property-name.cjs +0 -1
- package/dist/typescript/components/property-name.d.cts +0 -23
- package/dist/typescript/components/property-name.d.cts.map +0 -1
- package/dist/typescript/components/property-name.d.mts +0 -23
- package/dist/typescript/components/property-name.d.mts.map +0 -1
- package/dist/typescript/components/property-name.mjs +0 -2
- package/dist/typescript/components/property-name.mjs.map +0 -1
- package/dist/typescript/components/record-expression.cjs +0 -3
- package/dist/typescript/components/record-expression.d.cts +0 -12
- package/dist/typescript/components/record-expression.d.cts.map +0 -1
- package/dist/typescript/components/record-expression.d.mts +0 -12
- package/dist/typescript/components/record-expression.d.mts.map +0 -1
- package/dist/typescript/components/record-expression.mjs +0 -4
- package/dist/typescript/components/record-expression.mjs.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +0 -1
- package/dist/typescript/components/tsdoc-reflection.d.cts +0 -42
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +0 -42
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.mjs +0 -2
- package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
- package/dist/typescript/components/tsdoc.cjs +0 -1
- package/dist/typescript/components/tsdoc.d.cts +0 -161
- package/dist/typescript/components/tsdoc.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc.d.mts +0 -161
- package/dist/typescript/components/tsdoc.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc.mjs +0 -2
- package/dist/typescript/components/tsdoc.mjs.map +0 -1
- package/dist/typescript/components/type-declaration.cjs +0 -1
- package/dist/typescript/components/type-declaration.d.cts +0 -17
- package/dist/typescript/components/type-declaration.d.cts.map +0 -1
- package/dist/typescript/components/type-declaration.d.mts +0 -17
- package/dist/typescript/components/type-declaration.d.mts.map +0 -1
- package/dist/typescript/components/type-declaration.mjs +0 -2
- package/dist/typescript/components/type-declaration.mjs.map +0 -1
- package/dist/typescript/components/type-parameters.cjs +0 -1
- package/dist/typescript/components/type-parameters.d.cts +0 -23
- package/dist/typescript/components/type-parameters.d.cts.map +0 -1
- package/dist/typescript/components/type-parameters.d.mts +0 -23
- package/dist/typescript/components/type-parameters.d.mts.map +0 -1
- package/dist/typescript/components/type-parameters.mjs +0 -2
- package/dist/typescript/components/type-parameters.mjs.map +0 -1
- package/dist/typescript/components/typescript-file.cjs +0 -1
- package/dist/typescript/components/typescript-file.d.cts +0 -47
- package/dist/typescript/components/typescript-file.d.cts.map +0 -1
- package/dist/typescript/components/typescript-file.d.mts +0 -47
- package/dist/typescript/components/typescript-file.d.mts.map +0 -1
- package/dist/typescript/components/typescript-file.mjs +0 -2
- package/dist/typescript/components/typescript-file.mjs.map +0 -1
- package/dist/typescript/contexts/index.cjs +0 -1
- package/dist/typescript/contexts/index.d.cts +0 -2
- package/dist/typescript/contexts/index.d.mts +0 -2
- package/dist/typescript/contexts/index.mjs +0 -1
- package/dist/typescript/contexts/lexical-scope.cjs +0 -1
- package/dist/typescript/contexts/lexical-scope.d.cts +0 -14
- package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
- package/dist/typescript/contexts/lexical-scope.d.mts +0 -14
- package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
- package/dist/typescript/contexts/lexical-scope.mjs +0 -2
- package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
- package/dist/typescript/contexts/member-scope.cjs +0 -1
- package/dist/typescript/contexts/member-scope.d.cts +0 -19
- package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
- package/dist/typescript/contexts/member-scope.d.mts +0 -19
- package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
- package/dist/typescript/contexts/member-scope.mjs +0 -2
- package/dist/typescript/contexts/member-scope.mjs.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.cjs +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
- package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
- package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.mjs +0 -2
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
- package/dist/typescript/helpers/index.cjs +0 -1
- package/dist/typescript/helpers/index.d.cts +0 -3
- package/dist/typescript/helpers/index.d.mts +0 -3
- package/dist/typescript/helpers/index.mjs +0 -1
- package/dist/typescript/helpers/utilities.cjs +0 -1
- package/dist/typescript/helpers/utilities.d.cts +0 -11
- package/dist/typescript/helpers/utilities.d.cts.map +0 -1
- package/dist/typescript/helpers/utilities.d.mts +0 -11
- package/dist/typescript/helpers/utilities.d.mts.map +0 -1
- package/dist/typescript/helpers/utilities.mjs +0 -2
- package/dist/typescript/helpers/utilities.mjs.map +0 -1
- package/dist/typescript/index.cjs +0 -1
- package/dist/typescript/index.d.cts +0 -17
- package/dist/typescript/index.d.mts +0 -17
- package/dist/typescript/index.mjs +0 -1
- package/dist/yaml/components/index.cjs +0 -1
- package/dist/yaml/components/index.d.cts +0 -2
- package/dist/yaml/components/index.d.mts +0 -2
- package/dist/yaml/components/index.mjs +0 -1
- package/dist/yaml/components/yaml-file.cjs +0 -1
- package/dist/yaml/components/yaml-file.d.cts +0 -32
- package/dist/yaml/components/yaml-file.d.cts.map +0 -1
- package/dist/yaml/components/yaml-file.d.mts +0 -32
- package/dist/yaml/components/yaml-file.d.mts.map +0 -1
- package/dist/yaml/components/yaml-file.mjs +0 -2
- package/dist/yaml/components/yaml-file.mjs.map +0 -1
- package/dist/yaml/index.cjs +0 -1
- package/dist/yaml/index.d.cts +0 -2
- package/dist/yaml/index.d.mts +0 -2
- package/dist/yaml/index.mjs +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/type-declaration.d.ts
|
|
5
|
-
interface TypeDeclarationProps extends CommonDeclarationProps {
|
|
6
|
-
/**
|
|
7
|
-
* The generic type parameters of the interface.
|
|
8
|
-
*/
|
|
9
|
-
typeParameters?: TypeParameterDescriptor[] | string[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Renders a TypeScript type declaration, including its name, optional TSDoc comment, and generic type parameters.
|
|
13
|
-
*/
|
|
14
|
-
declare const TypeDeclaration: _$_alloy_js_core0.Component<TypeDeclarationProps>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { TypeDeclaration, TypeDeclarationProps };
|
|
17
|
-
//# sourceMappingURL=type-declaration.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/type-declaration.tsx"],"mappings":";;;;UA4BiB,oBAAA,SAA6B,sBAAA;;;AAA9C;EAIE,cAAA,GAAiB,uBAAA;AAAA;;;;cAMN,eAAA,EAAe,iBAAA,CAAA,SAAA,CAAA,oBAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{TSDoc as e}from"./tsdoc.mjs";import{TypeParameters as t}from"./type-parameters.mjs";import{createComponent as n,memo as r,mergeProps as i}from"@alloy-js/core/jsx-runtime";import{Name as a,Show as o}from"@alloy-js/core";import{Declaration as s,ensureTypeRefContext as c}from"@alloy-js/typescript";const l=c(function(c){let{children:l,doc:u,typeParameters:d,...f}=c;return[n(o,{get when(){return!!u},get children(){return n(e,{heading:u})}}),n(s,i(f,{kind:`type`,nameKind:`type`,get children(){return[`type `,n(a,{}),r(()=>d&&n(t,{parameters:d})),` = `,l,`;`]}}))]});export{l as TypeDeclaration};
|
|
2
|
-
//# sourceMappingURL=type-declaration.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-declaration.mjs","names":[],"sources":["../../../src/typescript/components/type-declaration.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 { Name, Show } from \"@alloy-js/core\";\nimport {\n CommonDeclarationProps,\n Declaration,\n ensureTypeRefContext,\n TypeParameterDescriptor\n} from \"@alloy-js/typescript\";\nimport { TSDoc } from \"./tsdoc\";\nimport { TypeParameters } from \"./type-parameters\";\n\nexport interface TypeDeclarationProps extends CommonDeclarationProps {\n /**\n * The generic type parameters of the interface.\n */\n typeParameters?: TypeParameterDescriptor[] | string[];\n}\n\n/**\n * Renders a TypeScript type declaration, including its name, optional TSDoc comment, and generic type parameters.\n */\nexport const TypeDeclaration = ensureTypeRefContext(function TypeDeclaration(\n props: TypeDeclarationProps\n) {\n const { children, doc, typeParameters, ...rest } = props;\n\n return (\n <>\n <Show when={Boolean(doc)}>\n <TSDoc heading={doc} />\n </Show>\n <Declaration {...rest} kind=\"type\" nameKind=\"type\">\n type <Name />\n {typeParameters && (\n <TypeParameters parameters={typeParameters} />\n )} = {children};\n </Declaration>\n </>\n );\n});\n"],"mappings":"+SA0BA,MAAS,EAAsB,EAAmB,SAAA,EAAA,KAElD,WACI,MACA,iBACA,GAAA,GACF,EACF,MAAA,CAAA,EAAA,EAAA,YAEE,MAAA,EAAA,GAEA,IAAA,UAAA,CACI,OAAO,EAAkB,EAAA,CACvB,QAAC,EACP,CAAA,aAGA,KAAO,OACL,SAAC,OACD,IAAG,UAAW,CACZ,MAAG,CAAK,QAAS,EAAO,EAAA,EAAA,CAAA,CAAA,MAAA,GAAA,EAAA,EAAA,CACtB,WAAI,EACL,CAAA,CAAA,CAAA,MAAW,EAAU,IAAC,EAE1B,CAAC,CAAC,CAAC,EACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core/jsx-runtime`),t=require(`@alloy-js/core`),n=require(`@alloy-js/typescript`);function r(r){return(0,e.createComponent)(t.Show,{when:typeof r==`object`,get fallback(){return[r]},get children(){return[(0,e.createIntrinsic)(`group`,{get children(){return[(0,e.memo)(()=>r.name),(0,e.createComponent)(t.Show,{get when(){return!!r.extends},get children(){return[` `,`extends`,(0,e.createIntrinsic)(`indent`,{get children(){return[` `,(0,e.createComponent)(n.TypeRefContext,{get children(){return r.extends}})]}})]}}),(0,e.createComponent)(t.Show,{get when(){return!!r.default},get children(){return[` = `,(0,e.createComponent)(n.TypeRefContext,{get children(){return r.default}})]}})]}}),` `]}})}function i(n){if(n.children)return n.children;if(n.parameters)return[`<`,(0,e.createIntrinsic)(`group`,{get children(){return(0,e.createComponent)(t.Indent,{softline:!0,get children(){return[(0,e.createComponent)(t.For,{get each(){return n.parameters},comma:!0,line:!0,children:e=>r(e)}),(0,e.createIntrinsic)(`ifBreak`,{children:`,`})]}})}}),`>`]}exports.TypeParameters=i;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/type-parameters.d.ts
|
|
5
|
-
/** Props for type parameters */
|
|
6
|
-
interface TypeParametersProps {
|
|
7
|
-
/** Parameters */
|
|
8
|
-
parameters?: TypeParameterDescriptor[] | string[];
|
|
9
|
-
/** Jsx Children */
|
|
10
|
-
children?: Children;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represent type parameters
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* <A, B extends string>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
declare function TypeParameters(props: TypeParametersProps): Children;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { TypeParameters, TypeParametersProps };
|
|
23
|
-
//# sourceMappingURL=type-parameters.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-parameters.d.cts","names":[],"sources":["../../../src/typescript/components/type-parameters.tsx"],"mappings":";;;;;UAsBiB,mBAAA;EAAA;EAEf,UAAA,GAAa,uBAAA;;EAEb,QAAA,GAAW,QAAA;AAAA;;;;;;AAqCb;;;iBAAgB,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAmB,QAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/type-parameters.d.ts
|
|
5
|
-
/** Props for type parameters */
|
|
6
|
-
interface TypeParametersProps {
|
|
7
|
-
/** Parameters */
|
|
8
|
-
parameters?: TypeParameterDescriptor[] | string[];
|
|
9
|
-
/** Jsx Children */
|
|
10
|
-
children?: Children;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represent type parameters
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* <A, B extends string>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
declare function TypeParameters(props: TypeParametersProps): Children;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { TypeParameters, TypeParametersProps };
|
|
23
|
-
//# sourceMappingURL=type-parameters.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-parameters.d.mts","names":[],"sources":["../../../src/typescript/components/type-parameters.tsx"],"mappings":";;;;;UAsBiB,mBAAA;EAAA;EAEf,UAAA,GAAa,uBAAA;;EAEb,QAAA,GAAW,QAAA;AAAA;;;;;;AAqCb;;;iBAAgB,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAmB,QAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createComponent as e,createIntrinsic as t,memo as n}from"@alloy-js/core/jsx-runtime";import{For as r,Indent as i,Show as a}from"@alloy-js/core";import{TypeRefContext as o}from"@alloy-js/typescript";function s(r){return e(a,{when:typeof r==`object`,get fallback(){return[r]},get children(){return[t(`group`,{get children(){return[n(()=>r.name),e(a,{get when(){return!!r.extends},get children(){return[` `,`extends`,t(`indent`,{get children(){return[` `,e(o,{get children(){return r.extends}})]}})]}}),e(a,{get when(){return!!r.default},get children(){return[` = `,e(o,{get children(){return r.default}})]}})]}}),` `]}})}function c(n){if(n.children)return n.children;if(n.parameters)return[`<`,t(`group`,{get children(){return e(i,{softline:!0,get children(){return[e(r,{get each(){return n.parameters},comma:!0,line:!0,children:e=>s(e)}),t(`ifBreak`,{children:`,`})]}})}}),`>`]}export{c as TypeParameters};
|
|
2
|
-
//# sourceMappingURL=type-parameters.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-parameters.mjs","names":[],"sources":["../../../src/typescript/components/type-parameters.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 { Children, For, Indent, Show } from \"@alloy-js/core\";\nimport { TypeParameterDescriptor, TypeRefContext } from \"@alloy-js/typescript\";\n\n/** Props for type parameters */\nexport interface TypeParametersProps {\n /** Parameters */\n parameters?: TypeParameterDescriptor[] | string[];\n /** Jsx Children */\n children?: Children;\n}\n\nfunction typeParameter(param: TypeParameterDescriptor | string) {\n return (\n <Show when={typeof param === \"object\"} fallback={<>{param}</>}>\n <group>\n {(param as TypeParameterDescriptor).name}\n <Show when={!!(param as TypeParameterDescriptor).extends}>\n {\" \"}\n extends\n <indent>\n {\" \"}\n <TypeRefContext>\n {(param as TypeParameterDescriptor).extends}\n </TypeRefContext>\n </indent>\n </Show>\n <Show when={!!(param as TypeParameterDescriptor).default}>\n {\" = \"}\n <TypeRefContext>\n {(param as TypeParameterDescriptor).default}\n </TypeRefContext>\n </Show>\n </group>{\" \"}\n </Show>\n );\n}\n\n/**\n * Represent type parameters\n *\n * @example\n * ```ts\n * <A, B extends string>\n * ```\n */\nexport function TypeParameters(props: TypeParametersProps) {\n if (props.children) {\n return props.children;\n }\n\n if (!props.parameters) {\n return undefined;\n }\n\n return (\n <>\n {\"<\"}\n <group>\n <Indent softline>\n <For each={props.parameters} comma line>\n {param => typeParameter(param)}\n </For>\n <ifBreak>,</ifBreak>\n </Indent>\n </group>\n {\">\"}\n </>\n );\n}\n"],"mappings":"6MAwBA,SAAE,EAAa,EAAA,CACb,OAAO,EAAW,EAAA,CAClB,KAAQ,OAAG,GAAQ,SACrB,IAAA,UAAA,YAGE,IAAM,UAAC,CACJ,MAAK,CAAI,EAAkB,QAAS,CAClC,IAAK,UAAA,CACF,MAAM,CAAE,MAAC,EAAA,KAAuB,CAAE,EAAI,EAAA,CACvC,IAAK,MAAS,CACT,MAAA,CAAA,CAAA,EAAA,SAEH,IAAA,UAAM,CACH,MAAE,CAAA,IAAA,UAAA,EAAA,SAAA,CACH,IAAA,UAAc,CACX,MAAS,CAAA,IAAA,EAAwB,EAAQ,CAC3C,IAAA,UAAc,CACV,OAAA,EAAA,SAEC,CAAC,CAAC,EAEV,CAAA,CAAA,EAEA,CAAC,CAAA,EAAc,EAAA,CAChB,IAAI,MAAA,CACA,MAAI,CAAA,CAAA,EAAA,SAEf,IAAA,UAAA,CACH,MAAA,CAAA,MAAA,EAAA,EAAA,CAAA,IAAA,UAAA,CAEE,OAAA,EAAA,SAED,CAAA,CAAA,EAEK,CAAA,CAAA,EAED,CAAA,CAAA,IAAA,EAEL,CAAA,CAWA,SAAU,EAAA,EAAA,CACR,GAAI,EAAM,SACR,OAAK,EAAO,SAET,KAAM,WAGX,MAAO,CAAC,IAAA,EAAM,QAAA,CACZ,IAAI,UAAK,CACP,OAAI,EAAA,EAAA,CACJ,SAAA,GACH,IAAA,UAAA,CACH,MAAA,CAAA,EAAA,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../core/contexts/context.cjs`),t=require(`../../core/components/source-file.cjs`),n=require(`../../core/components/single-line-comment.cjs`),r=require(`../../core/helpers/code.cjs`);let i=require(`@alloy-js/core/jsx-runtime`),a=require(`@alloy-js/core`),o=require(`@stryke/path/append`),s=require(`@stryke/string-format/title-case`),c=require(`powerlines/utils`),l=require(`@stryke/helpers/get-unique`),u=require(`@stryke/type-checks/is-string`),d=require(`@alloy-js/typescript`),f=require(`@stryke/type-checks/is-boolean`);function p(e){let[{children:n,path:r,imports:s,builtinImports:c,tsx:l,header:u,hashbang:p},g]=(0,a.splitProps)(e,[`children`,`path`,`imports`,`builtinImports`,`tsx`,`header`,`hashbang`]),_=(0,a.useContext)(a.SourceDirectoryContext),v=(0,d.getSourceDirectoryData)(_),y=(0,o.appendPath)(r,_.path),b=new d.TSModuleScope(y,(0,a.useScope)());v.modules.add(b);let x=(0,a.useContext)(d.PackageContext);return x&&x.scope.addModule(b),e.export&&x&&((0,f.isBoolean)(e.export)?x.scope.addExport(y,b):x.scope.addExport(e.export,b)),(0,i.createComponent)(d.SourceFileContext.Provider,{value:{scope:b},get children(){return(0,i.createComponent)(a.Scope,{value:b,get children(){return(0,i.createComponent)(t.SourceFile,(0,i.mergeProps)(g,{path:y,get header(){return u??(0,i.createComponent)(m,{hashbang:p,get children(){return(0,i.createComponent)(h,{imports:s,builtinImports:c,scope:b})}})},filetype:l?`tsx`:`typescript`,children:n}))}})}})}function m(t){let{header:o,hashbang:l,disableEslint:u=!0,disableBiome:d=!0,children:f}=t,p=e.usePowerlinesSafe();return[(0,i.createComponent)(a.Show,{get when(){return!!l},get children(){return[(0,i.memo)(()=>l===!0?r.code`#!/usr/bin/env ${p?.config.mode===`development`?`-S NODE_OPTIONS=--enable-source-maps`:``} node`:l),(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(a.Show,{get when(){return!!o},get children(){return[o,(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createIntrinsic)(`hbr`,{}),(0,i.createComponent)(a.Show,{get when(){return!!u},get children(){return[(0,i.createComponent)(n.SingleLineComment,{variant:`slash-star`,children:`eslint-disable`}),(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(a.Show,{get when(){return!!d},get children(){return[(0,i.createComponent)(n.SingleLineComment,{children:`biome-ignore lint: disable`}),(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(a.Show,{get when(){return!!u||!!d},get children(){return(0,i.createIntrinsic)(`hbr`,{})}}),(0,i.createComponent)(a.Show,{get when(){return!!f},get children(){return[f,(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(n.SingleLineComment,{get children(){return`Generated by ${(0,s.titleCase)(p?.config?.framework)||`Powerlines`}`}}),(0,i.createIntrinsic)(`hbr`,{}),(0,i.createComponent)(n.SingleLineComment,{get children(){return(0,c.getFileHeaderWarning)(p)}}),(0,i.createIntrinsic)(`hbr`,{})]}function h(t){let{imports:n,builtinImports:o}=t,s=e.usePowerlinesSafe(),c=(0,d.useSourceFile)(),f=t.scope??c.scope,p=(0,a.computed)(()=>Object.fromEntries(Object.entries(n??{}).map(([e,t])=>[e,Array.isArray(t)?(0,l.getUniqueBy)(t,e=>(0,u.isString)(e)?e:e.alias||e.name):t]))),m=(0,a.computed)(()=>Object.fromEntries(Object.entries(o??{}).map(([e,t])=>[e,Array.isArray(t)?(0,l.getUniqueBy)(t,e=>(0,u.isString)(e)?e:e.alias||e.name):t])));return(0,i.createComponent)(a.Show,{get when(){return f.importedModules.size>0||!!p.value&&Object.keys(p.value).length>0||!!m.value&&Object.keys(m.value).length>0},get children(){return[(0,i.createComponent)(a.Show,{get when(){return(0,i.memo)(()=>!!p.value)()&&Object.keys(p.value).length>0},get children(){return(0,i.createComponent)(a.For,{get each(){return Object.entries(p.value??{})},hardline:!0,get ender(){return(0,i.createIntrinsic)(`hbr`,{})},children:([e,t])=>r.code`import ${t===null?``:(0,u.isString)(t)?t:`${t.filter(e=>!(0,u.isString)(e)&&e.default).map(e=>`${e.type?`type `:``}${e.alias?e.alias:e.name}`).join(`, `)+(t.filter(e=>!(0,u.isString)(e)&&e.default).length>0&&t.filter(e=>(0,u.isString)(e)||!e.default).length>0?`, `:``)+(t.filter(e=>(0,u.isString)(e)||!e.default).length>0?`{ ${t.filter(e=>(0,u.isString)(e)||!e.default).map(e=>(0,u.isString)(e)?e:`${e.type?`type `:``}${e.alias?`${e.name} as ${e.alias}`:e.name}`).join(`, `)} }`:``)}`} from "${e}";`})}}),(0,i.createComponent)(a.Show,{get when(){return(0,i.memo)(()=>!!m.value)()&&Object.keys(m.value).length>0},get children(){return(0,i.createComponent)(a.For,{get each(){return Object.entries(m.value??{})},hardline:!0,get ender(){return(0,i.createIntrinsic)(`hbr`,{})},children:([e,t])=>r.code`import ${t===null?``:(0,u.isString)(t)?t:`${t.filter(e=>!(0,u.isString)(e)&&e.default).map(e=>`${e.type?`type `:``}${e.alias?e.alias:e.name}`).join(`, `)+(t.filter(e=>!(0,u.isString)(e)&&e.default).length>0&&t.filter(e=>(0,u.isString)(e)||!e.default).length>0?`, `:``)+(t.filter(e=>(0,u.isString)(e)||!e.default).length>0?`{ ${t.filter(e=>(0,u.isString)(e)||!e.default).map(e=>(0,u.isString)(e)?e:`${e.type?`type `:``}${e.alias?`${e.name} as ${e.alias}`:e.name}`).join(`, `)} }`:``)}`} from "${e.includes(`:`)?e:`${s?.config?.framework||`powerlines`}:${e}`}";`})}}),(0,i.createComponent)(a.Show,{get when(){return f.importedModules.size>0},get children(){return(0,i.createComponent)(d.ImportStatements,{get records(){return f.importedModules}})}}),(0,i.createIntrinsic)(`hbr`,{})]}})}exports.TypescriptFile=p,exports.TypescriptFileHeader=m,exports.TypescriptFileHeaderImports=h;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, SourceFileHeaderProps, TypescriptFileImports } from "../../types/components.cjs";
|
|
2
|
-
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
|
-
import { Children } from "@alloy-js/core";
|
|
4
|
-
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/typescript-file.d.ts
|
|
7
|
-
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
-
hashbang?: Children | true;
|
|
9
|
-
header?: Children;
|
|
10
|
-
imports?: TypescriptFileImports;
|
|
11
|
-
builtinImports?: TypescriptFileImports;
|
|
12
|
-
export?: boolean | string;
|
|
13
|
-
tsx?: boolean;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
17
|
-
*
|
|
18
|
-
* @param props - The properties for the source file.
|
|
19
|
-
* @returns The rendered source file component.
|
|
20
|
-
*/
|
|
21
|
-
declare function TypescriptFile(props: TypescriptFileProps): Children;
|
|
22
|
-
interface TypescriptFileHeaderProps extends SourceFileHeaderProps {
|
|
23
|
-
header?: Children;
|
|
24
|
-
hashbang?: Children | true;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
28
|
-
*
|
|
29
|
-
* @param props - The properties for the source file header.
|
|
30
|
-
* @returns The rendered source file header.
|
|
31
|
-
*/
|
|
32
|
-
declare function TypescriptFileHeader(props: TypescriptFileHeaderProps): Children;
|
|
33
|
-
interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {
|
|
34
|
-
imports?: TypescriptFileImports;
|
|
35
|
-
builtinImports?: TypescriptFileImports;
|
|
36
|
-
scope?: TSModuleScope;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
40
|
-
*
|
|
41
|
-
* @param props - The properties for the source file header.
|
|
42
|
-
* @returns The rendered source file header.
|
|
43
|
-
*/
|
|
44
|
-
declare function TypescriptFileHeaderImports(props: TypescriptFileHeaderImportsProps): Children;
|
|
45
|
-
//#endregion
|
|
46
|
-
export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps };
|
|
47
|
-
//# sourceMappingURL=typescript-file.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-file.d.cts","names":[],"sources":["../../../src/typescript/components/typescript-file.tsx"],"mappings":";;;;;;KAsDY,mBAAA,GAAsB,IAAA,CAAK,iBAAA,gBACrC,cAAA;EACE,QAAA,GAAW,QAAA;EACX,MAAA,GAAS,QAAA;EACT,OAAA,GAAU,qBAAA;EACV,cAAA,GAAiB,qBAAA;EACjB,MAAA;EACA,GAAA;AAAA;;;;;;;iBASY,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAmB,QAAA;AAAA,UAgExC,yBAAA,SAAkC,qBAAA;EACjD,MAAA,GAAS,QAAA;EACT,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,oBAAA,CAAqB,KAAA,EAAO,yBAAA,GAAyB,QAAA;AAAA,UAuDpD,gCAAA,SAAyC,qBAAA;EACxD,OAAA,GAAU,qBAAA;EACV,cAAA,GAAiB,qBAAA;EACjB,KAAA,GAAQ,aAAA;AAAA;;;;;;;iBASM,2BAAA,CACd,KAAA,EAAO,gCAAA,GAAgC,QAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, SourceFileHeaderProps, TypescriptFileImports } from "../../types/components.mjs";
|
|
2
|
-
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
|
-
import { Children } from "@alloy-js/core";
|
|
4
|
-
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/typescript-file.d.ts
|
|
7
|
-
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
-
hashbang?: Children | true;
|
|
9
|
-
header?: Children;
|
|
10
|
-
imports?: TypescriptFileImports;
|
|
11
|
-
builtinImports?: TypescriptFileImports;
|
|
12
|
-
export?: boolean | string;
|
|
13
|
-
tsx?: boolean;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
17
|
-
*
|
|
18
|
-
* @param props - The properties for the source file.
|
|
19
|
-
* @returns The rendered source file component.
|
|
20
|
-
*/
|
|
21
|
-
declare function TypescriptFile(props: TypescriptFileProps): Children;
|
|
22
|
-
interface TypescriptFileHeaderProps extends SourceFileHeaderProps {
|
|
23
|
-
header?: Children;
|
|
24
|
-
hashbang?: Children | true;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
28
|
-
*
|
|
29
|
-
* @param props - The properties for the source file header.
|
|
30
|
-
* @returns The rendered source file header.
|
|
31
|
-
*/
|
|
32
|
-
declare function TypescriptFileHeader(props: TypescriptFileHeaderProps): Children;
|
|
33
|
-
interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {
|
|
34
|
-
imports?: TypescriptFileImports;
|
|
35
|
-
builtinImports?: TypescriptFileImports;
|
|
36
|
-
scope?: TSModuleScope;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
40
|
-
*
|
|
41
|
-
* @param props - The properties for the source file header.
|
|
42
|
-
* @returns The rendered source file header.
|
|
43
|
-
*/
|
|
44
|
-
declare function TypescriptFileHeaderImports(props: TypescriptFileHeaderImportsProps): Children;
|
|
45
|
-
//#endregion
|
|
46
|
-
export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps };
|
|
47
|
-
//# sourceMappingURL=typescript-file.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-file.d.mts","names":[],"sources":["../../../src/typescript/components/typescript-file.tsx"],"mappings":";;;;;;KAsDY,mBAAA,GAAsB,IAAA,CAAK,iBAAA,gBACrC,cAAA;EACE,QAAA,GAAW,QAAA;EACX,MAAA,GAAS,QAAA;EACT,OAAA,GAAU,qBAAA;EACV,cAAA,GAAiB,qBAAA;EACjB,MAAA;EACA,GAAA;AAAA;;;;;;;iBASY,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAmB,QAAA;AAAA,UAgExC,yBAAA,SAAkC,qBAAA;EACjD,MAAA,GAAS,QAAA;EACT,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,oBAAA,CAAqB,KAAA,EAAO,yBAAA,GAAyB,QAAA;AAAA,UAuDpD,gCAAA,SAAyC,qBAAA;EACxD,OAAA,GAAU,qBAAA;EACV,cAAA,GAAiB,qBAAA;EACjB,KAAA,GAAQ,aAAA;AAAA;;;;;;;iBASM,2BAAA,CACd,KAAA,EAAO,gCAAA,GAAgC,QAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{usePowerlinesSafe as e}from"../../core/contexts/context.mjs";import{SourceFile as t}from"../../core/components/source-file.mjs";import{SingleLineComment as n}from"../../core/components/single-line-comment.mjs";import{code as r}from"../../core/helpers/code.mjs";import{createComponent as i,createIntrinsic as a,memo as o,mergeProps as s}from"@alloy-js/core/jsx-runtime";import{For as c,Scope as l,Show as u,SourceDirectoryContext as d,computed as f,splitProps as p,useContext as m,useScope as h}from"@alloy-js/core";import{appendPath as g}from"@stryke/path/append";import{titleCase as _}from"@stryke/string-format/title-case";import{getFileHeaderWarning as v}from"powerlines/utils";import{getUniqueBy as y}from"@stryke/helpers/get-unique";import{isString as b}from"@stryke/type-checks/is-string";import{ImportStatements as x,PackageContext as S,SourceFileContext as C,TSModuleScope as w,getSourceDirectoryData as T,useSourceFile as E}from"@alloy-js/typescript";import{isBoolean as D}from"@stryke/type-checks/is-boolean";function O(e){let[{children:n,path:r,imports:a,builtinImports:o,tsx:c,header:u,hashbang:f},_]=p(e,[`children`,`path`,`imports`,`builtinImports`,`tsx`,`header`,`hashbang`]),v=m(d),y=T(v),b=g(r,v.path),x=new w(b,h());y.modules.add(x);let E=m(S);return E&&E.scope.addModule(x),e.export&&E&&(D(e.export)?E.scope.addExport(b,x):E.scope.addExport(e.export,x)),i(C.Provider,{value:{scope:x},get children(){return i(l,{value:x,get children(){return i(t,s(_,{path:b,get header(){return u??i(k,{hashbang:f,get children(){return i(A,{imports:a,builtinImports:o,scope:x})}})},filetype:c?`tsx`:`typescript`,children:n}))}})}})}function k(t){let{header:s,hashbang:c,disableEslint:l=!0,disableBiome:d=!0,children:f}=t,p=e();return[i(u,{get when(){return!!c},get children(){return[o(()=>c===!0?r`#!/usr/bin/env ${p?.config.mode===`development`?`-S NODE_OPTIONS=--enable-source-maps`:``} node`:c),a(`hbr`,{})]}}),i(u,{get when(){return!!s},get children(){return[s,a(`hbr`,{})]}}),a(`hbr`,{}),i(u,{get when(){return!!l},get children(){return[i(n,{variant:`slash-star`,children:`eslint-disable`}),a(`hbr`,{})]}}),i(u,{get when(){return!!d},get children(){return[i(n,{children:`biome-ignore lint: disable`}),a(`hbr`,{})]}}),i(u,{get when(){return!!l||!!d},get children(){return a(`hbr`,{})}}),i(u,{get when(){return!!f},get children(){return[f,a(`hbr`,{})]}}),i(n,{get children(){return`Generated by ${_(p?.config?.framework)||`Powerlines`}`}}),a(`hbr`,{}),i(n,{get children(){return v(p)}}),a(`hbr`,{})]}function A(t){let{imports:n,builtinImports:s}=t,l=e(),d=E(),p=t.scope??d.scope,m=f(()=>Object.fromEntries(Object.entries(n??{}).map(([e,t])=>[e,Array.isArray(t)?y(t,e=>b(e)?e:e.alias||e.name):t]))),h=f(()=>Object.fromEntries(Object.entries(s??{}).map(([e,t])=>[e,Array.isArray(t)?y(t,e=>b(e)?e:e.alias||e.name):t])));return i(u,{get when(){return p.importedModules.size>0||!!m.value&&Object.keys(m.value).length>0||!!h.value&&Object.keys(h.value).length>0},get children(){return[i(u,{get when(){return o(()=>!!m.value)()&&Object.keys(m.value).length>0},get children(){return i(c,{get each(){return Object.entries(m.value??{})},hardline:!0,get ender(){return a(`hbr`,{})},children:([e,t])=>r`import ${t===null?``:b(t)?t:`${t.filter(e=>!b(e)&&e.default).map(e=>`${e.type?`type `:``}${e.alias?e.alias:e.name}`).join(`, `)+(t.filter(e=>!b(e)&&e.default).length>0&&t.filter(e=>b(e)||!e.default).length>0?`, `:``)+(t.filter(e=>b(e)||!e.default).length>0?`{ ${t.filter(e=>b(e)||!e.default).map(e=>b(e)?e:`${e.type?`type `:``}${e.alias?`${e.name} as ${e.alias}`:e.name}`).join(`, `)} }`:``)}`} from "${e}";`})}}),i(u,{get when(){return o(()=>!!h.value)()&&Object.keys(h.value).length>0},get children(){return i(c,{get each(){return Object.entries(h.value??{})},hardline:!0,get ender(){return a(`hbr`,{})},children:([e,t])=>r`import ${t===null?``:b(t)?t:`${t.filter(e=>!b(e)&&e.default).map(e=>`${e.type?`type `:``}${e.alias?e.alias:e.name}`).join(`, `)+(t.filter(e=>!b(e)&&e.default).length>0&&t.filter(e=>b(e)||!e.default).length>0?`, `:``)+(t.filter(e=>b(e)||!e.default).length>0?`{ ${t.filter(e=>b(e)||!e.default).map(e=>b(e)?e:`${e.type?`type `:``}${e.alias?`${e.name} as ${e.alias}`:e.name}`).join(`, `)} }`:``)}`} from "${e.includes(`:`)?e:`${l?.config?.framework||`powerlines`}:${e}`}";`})}}),i(u,{get when(){return p.importedModules.size>0},get children(){return i(x,{get records(){return p.importedModules}})}}),a(`hbr`,{})]}})}export{O as TypescriptFile,k as TypescriptFileHeader,A as TypescriptFileHeaderImports};
|
|
2
|
-
//# sourceMappingURL=typescript-file.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-file.mjs","names":[],"sources":["../../../src/typescript/components/typescript-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 type { Children } from \"@alloy-js/core\";\nimport {\n computed,\n For,\n Scope,\n Show,\n SourceDirectoryContext,\n splitProps,\n useContext,\n useScope\n} from \"@alloy-js/core\";\nimport {\n getSourceDirectoryData,\n ImportStatements,\n PackageContext,\n SourceFileContext,\n TSModuleScope,\n useSourceFile\n} from \"@alloy-js/typescript\";\nimport { getUniqueBy } from \"@stryke/helpers/get-unique\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isBoolean } from \"@stryke/type-checks/is-boolean\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { getFileHeaderWarning } from \"powerlines/utils\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { SourceFile, SourceFileProps } from \"../../core/components/source-file\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { code } from \"../../core/helpers/code\";\nimport {\n ComponentProps,\n SourceFileHeaderProps,\n TypescriptFileImportItem,\n TypescriptFileImports\n} from \"../../types/components\";\n\nexport type TypescriptFileProps = Omit<SourceFileProps, \"filetype\"> &\n ComponentProps & {\n hashbang?: Children | true;\n header?: Children;\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n export?: boolean | string;\n tsx?: boolean;\n };\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function TypescriptFile(props: TypescriptFileProps) {\n const [\n { children, path, imports, builtinImports, tsx, header, hashbang },\n rest\n ] = splitProps(props, [\n \"children\",\n \"path\",\n \"imports\",\n \"builtinImports\",\n \"tsx\",\n \"header\",\n \"hashbang\"\n ]);\n\n const directoryContext = useContext(SourceDirectoryContext)!;\n const sdData = getSourceDirectoryData(directoryContext);\n\n const modulePath = appendPath(path, directoryContext.path);\n const scope = new TSModuleScope(modulePath, useScope());\n sdData.modules.add(scope);\n\n const pkg = useContext(PackageContext);\n if (pkg) {\n pkg.scope.addModule(scope);\n }\n\n if (props.export) {\n if (pkg) {\n if (isBoolean(props.export)) {\n pkg.scope.addExport(modulePath, scope);\n } else {\n pkg.scope.addExport(props.export, scope);\n }\n }\n }\n\n return (\n <SourceFileContext.Provider\n value={{\n scope\n }}>\n <Scope value={scope}>\n <SourceFile\n {...rest}\n path={modulePath}\n header={\n header ?? (\n <TypescriptFileHeader hashbang={hashbang}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n scope={scope}\n />\n </TypescriptFileHeader>\n )\n }\n filetype={tsx ? \"tsx\" : \"typescript\"}>\n {children}\n </SourceFile>\n </Scope>\n </SourceFileContext.Provider>\n );\n}\n\nexport interface TypescriptFileHeaderProps extends SourceFileHeaderProps {\n header?: Children;\n hashbang?: Children | true;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeader(props: TypescriptFileHeaderProps) {\n const {\n header,\n hashbang,\n disableEslint = true,\n disableBiome = true,\n children\n } = props;\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n <Show when={Boolean(hashbang)}>\n {hashbang === true\n ? code`#!/usr/bin/env ${\n context?.config.mode === \"development\"\n ? \"-S NODE_OPTIONS=--enable-source-maps\"\n : \"\"\n } node`\n : hashbang}\n <hbr />\n </Show>\n <Show when={Boolean(header)}>\n {header}\n <hbr />\n </Show>\n <hbr />\n <Show when={Boolean(disableEslint)}>\n <SingleLineComment variant=\"slash-star\">\n {\"eslint-disable\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableBiome)}>\n <SingleLineComment>{\"biome-ignore lint: disable\"}</SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableEslint) || Boolean(disableBiome)}>\n <hbr />\n </Show>\n <Show when={Boolean(children)}>\n {children}\n <hbr />\n </Show>\n <SingleLineComment>{`Generated by ${\n titleCase(context?.config?.framework) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment>{getFileHeaderWarning(context!)}</SingleLineComment>\n <hbr />\n </>\n );\n}\n\nexport interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n scope?: TSModuleScope;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeaderImports(\n props: TypescriptFileHeaderImportsProps\n) {\n const { imports: importProps, builtinImports: builtinImportsProps } = props;\n\n const context = usePowerlinesSafe();\n const sourceFile = useSourceFile();\n\n const scope = props.scope ?? sourceFile.scope;\n\n const imports = computed(() => {\n return Object.fromEntries(\n Object.entries(importProps ?? {}).map(([module, importItem]) => [\n module,\n Array.isArray(importItem)\n ? getUniqueBy(importItem, i => (isString(i) ? i : i.alias || i.name))\n : importItem\n ])\n );\n });\n const builtinImports = computed(() => {\n return Object.fromEntries(\n Object.entries(builtinImportsProps ?? {}).map(([module, importItem]) => [\n module,\n Array.isArray(importItem)\n ? getUniqueBy(importItem, i => (isString(i) ? i : i.alias || i.name))\n : importItem\n ])\n );\n });\n\n return (\n <Show\n when={\n scope.importedModules.size > 0 ||\n (!!imports.value && Object.keys(imports.value).length > 0) ||\n (!!builtinImports.value && Object.keys(builtinImports.value).length > 0)\n }>\n <Show when={!!imports.value && Object.keys(imports.value).length > 0}>\n <For\n each={Object.entries(imports.value ?? {})}\n hardline\n ender={<hbr />}>\n {([module, importItem]) =>\n code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : `${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(\n i =>\n `${i.type ? \"type \" : \"\"}${\n i.alias ? i.alias : i.name\n }`\n )\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default).length >\n 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .filter(i => isString(i) || !i.default)\n .map(i =>\n isString(i)\n ? i\n : `${i.type ? \"type \" : \"\"}${\n i.alias ? `${i.name} as ${i.alias}` : i.name\n }`\n )\n .join(\", \")} }`\n : \"\")\n }`\n } from \"${module}\";`\n }\n </For>\n </Show>\n <Show\n when={\n builtinImports.value && Object.keys(builtinImports.value).length > 0\n }>\n <For\n each={Object.entries(\n (builtinImports.value ?? {}) as Record<\n string,\n null | Array<TypescriptFileImportItem | string>\n >\n )}\n hardline\n ender={<hbr />}>\n {([module, importItem]) =>\n code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : `${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(\n i =>\n `${i.type ? \"type \" : \"\"}${\n i.alias ? i.alias : i.name\n }`\n )\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default).length >\n 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .filter(i => isString(i) || !i.default)\n .map(i =>\n isString(i)\n ? i\n : `${i.type ? \"type \" : \"\"}${\n i.alias ? `${i.name} as ${i.alias}` : i.name\n }`\n )\n .join(\", \")} }`\n : \"\")\n }`\n } from \"${\n module.includes(\":\")\n ? module\n : `${context?.config?.framework || \"powerlines\"}:${module}`\n }\";`\n }\n </For>\n </Show>\n <Show when={scope.importedModules.size > 0}>\n <ImportStatements records={scope.importedModules} />\n </Show>\n <hbr />\n </Show>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./lexical-scope.cjs`);exports.LexicalScope=e.LexicalScope;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{LexicalScope as e}from"./lexical-scope.mjs";export{e as LexicalScope};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core/jsx-runtime`),t=require(`@alloy-js/core`),n=require(`@alloy-js/typescript`);function r(r){let i;if(`value`in r){if(!(r.value instanceof n.TSLexicalScope))throw TypeError(`LexicalScope value must be a TSLexicalScope instance`);i=r.value}else i=(0,n.createLexicalScope)(r.name??`Lexical scope`,r);return(0,e.createComponent)(t.Scope,{value:i,get children(){return r.children}})}exports.LexicalScope=r;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/contexts/lexical-scope.d.ts
|
|
5
|
-
interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}
|
|
6
|
-
interface LexicalScopePropsWithScopeInfo extends ScopePropsWithInfo {}
|
|
7
|
-
type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWithScopeInfo;
|
|
8
|
-
/**
|
|
9
|
-
* A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
|
|
10
|
-
*/
|
|
11
|
-
declare function LexicalScope(props: LexicalScopeProps): _$_alloy_js_core0.Children;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue };
|
|
14
|
-
//# sourceMappingURL=lexical-scope.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lexical-scope.d.cts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;;;UAqBiB,+BAAA,SAAwC,mBAAA;AAAA,UACxC,8BAAA,SAAuC,kBAAA;AAAA,KAE5C,iBAAA,GACR,+BAAA,GACA,8BAAA;;;;iBAKY,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,iBAAA,CAAA,QAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/contexts/lexical-scope.d.ts
|
|
5
|
-
interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}
|
|
6
|
-
interface LexicalScopePropsWithScopeInfo extends ScopePropsWithInfo {}
|
|
7
|
-
type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWithScopeInfo;
|
|
8
|
-
/**
|
|
9
|
-
* A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
|
|
10
|
-
*/
|
|
11
|
-
declare function LexicalScope(props: LexicalScopeProps): _$_alloy_js_core0.Children;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue };
|
|
14
|
-
//# sourceMappingURL=lexical-scope.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lexical-scope.d.mts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;;;UAqBiB,+BAAA,SAAwC,mBAAA;AAAA,UACxC,8BAAA,SAAuC,kBAAA;AAAA,KAE5C,iBAAA,GACR,+BAAA,GACA,8BAAA;;;;iBAKY,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,iBAAA,CAAA,QAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createComponent as e}from"@alloy-js/core/jsx-runtime";import{Scope as t}from"@alloy-js/core";import{TSLexicalScope as n,createLexicalScope as r}from"@alloy-js/typescript";function i(i){let a;if(`value`in i){if(!(i.value instanceof n))throw TypeError(`LexicalScope value must be a TSLexicalScope instance`);a=i.value}else a=r(i.name??`Lexical scope`,i);return e(t,{value:a,get children(){return i.children}})}export{i as LexicalScope};
|
|
2
|
-
//# sourceMappingURL=lexical-scope.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lexical-scope.mjs","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.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 { Scope, ScopePropsWithInfo, ScopePropsWithValue } from \"@alloy-js/core\";\nimport { createLexicalScope, TSLexicalScope } from \"@alloy-js/typescript\";\n\nexport interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}\nexport interface LexicalScopePropsWithScopeInfo extends ScopePropsWithInfo {}\n\nexport type LexicalScopeProps =\n | LexicalScopePropsWithScopeValue\n | LexicalScopePropsWithScopeInfo;\n\n/**\n * A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.\n */\nexport function LexicalScope(props: LexicalScopeProps) {\n let scope;\n if (\"value\" in props) {\n if (!(props.value instanceof TSLexicalScope)) {\n throw new TypeError(\n \"LexicalScope value must be a TSLexicalScope instance\"\n );\n }\n scope = props.value;\n } else {\n scope = createLexicalScope(props.name ?? \"Lexical scope\", props);\n }\n\n return <Scope value={scope}>{props.children}</Scope>;\n}\n"],"mappings":"kLAwBA,SAAY,EAAiB,EAAC,CAC5B,IAAE,EACF,GAAE,UAAA,EAAA,4BAEF,MAAA,UAAA,uDAAA,CAEA,EAAA,EAAA,WAEA,EAAS,EAAA,EAAA,MAAA,gBAAA,EAAA,CAET,OAAO,EAAa,EAAW,CAC7B,MAAO,EACP,IAAI,UAAC,CACH,OAAC,EAAA,UAEJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core/jsx-runtime`),t=require(`@alloy-js/core`),n=require(`@alloy-js/typescript`);function r(r){let i=(0,n.useTSLexicalScopeIfPresent)(),a=r.ownerSymbol.binder??i?.binder;return(0,e.createComponent)(t.MemberScope,{value:(0,t.createScope)(n.TSMemberScope,`member-scope`,i,r.ownerSymbol,{binder:a}),get children(){return r.children}})}exports.MemberScope=r;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { TSOutputSymbol } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/contexts/member-scope.d.ts
|
|
5
|
-
interface MemberScopeProps {
|
|
6
|
-
children: Children;
|
|
7
|
-
/**
|
|
8
|
-
* The symbol that this member scope will create member symbols on.
|
|
9
|
-
*/
|
|
10
|
-
ownerSymbol: TSOutputSymbol;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A member scope for TypeScript. Member declarations will create symbols
|
|
14
|
-
* in this scope, which will be added to the owner symbol's members.
|
|
15
|
-
*/
|
|
16
|
-
declare function MemberScope(props: MemberScopeProps): Children;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { MemberScope, MemberScopeProps };
|
|
19
|
-
//# sourceMappingURL=member-scope.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member-scope.d.cts","names":[],"sources":["../../../src/typescript/contexts/member-scope.tsx"],"mappings":";;;;UA6BiB,gBAAA;EACf,QAAA,EAAU,QAAA;EADK;;;EAMf,WAAA,EAAa,cAAA;AAAA;;;;;iBAOC,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { TSOutputSymbol } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/contexts/member-scope.d.ts
|
|
5
|
-
interface MemberScopeProps {
|
|
6
|
-
children: Children;
|
|
7
|
-
/**
|
|
8
|
-
* The symbol that this member scope will create member symbols on.
|
|
9
|
-
*/
|
|
10
|
-
ownerSymbol: TSOutputSymbol;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A member scope for TypeScript. Member declarations will create symbols
|
|
14
|
-
* in this scope, which will be added to the owner symbol's members.
|
|
15
|
-
*/
|
|
16
|
-
declare function MemberScope(props: MemberScopeProps): Children;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { MemberScope, MemberScopeProps };
|
|
19
|
-
//# sourceMappingURL=member-scope.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member-scope.d.mts","names":[],"sources":["../../../src/typescript/contexts/member-scope.tsx"],"mappings":";;;;UA6BiB,gBAAA;EACf,QAAA,EAAU,QAAA;EADK;;;EAMf,WAAA,EAAa,cAAA;AAAA;;;;;iBAOC,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createComponent as e}from"@alloy-js/core/jsx-runtime";import{MemberScope as t,createScope as n}from"@alloy-js/core";import{TSMemberScope as r,useTSLexicalScopeIfPresent as i}from"@alloy-js/typescript";function a(a){let o=i(),s=a.ownerSymbol.binder??o?.binder;return e(t,{value:n(r,`member-scope`,o,a.ownerSymbol,{binder:s}),get children(){return a.children}})}export{a as MemberScope};
|
|
2
|
-
//# sourceMappingURL=member-scope.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member-scope.mjs","names":[],"sources":["../../../src/typescript/contexts/member-scope.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 {\n Children,\n MemberScope as CoreMemberScope,\n createScope\n} from \"@alloy-js/core\";\nimport {\n TSMemberScope,\n TSOutputSymbol,\n useTSLexicalScopeIfPresent\n} from \"@alloy-js/typescript\";\n\nexport interface MemberScopeProps {\n children: Children;\n\n /**\n * The symbol that this member scope will create member symbols on.\n */\n ownerSymbol: TSOutputSymbol;\n}\n\n/**\n * A member scope for TypeScript. Member declarations will create symbols\n * in this scope, which will be added to the owner symbol's members.\n */\nexport function MemberScope(props: MemberScopeProps) {\n const parentScope = useTSLexicalScopeIfPresent();\n const binder = props.ownerSymbol.binder ?? parentScope?.binder;\n const memberScope = createScope(\n TSMemberScope,\n \"member-scope\",\n parentScope,\n props.ownerSymbol,\n {\n binder\n }\n );\n\n return (\n <CoreMemberScope value={memberScope}>{props.children}</CoreMemberScope>\n );\n}\n"],"mappings":"gNAyBA,SAAgB,EAAA,EAAA,CACd,IAAA,EAAA,GAAA,CACM,EAAS,EAAC,YAAW,QAAA,GAAA,mBAKzB,MAAA,EAAA,EAAA,eAAA,EAAA,EAAA,YAAA,CAHJ,SACE,CAEE,CACA,IAAI,UAAQ,CACZ,OAAA,EAAA,UAEJ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core`);function t(t,n){let[r]=(0,e.splitProps)(t,[`parameters`,`parametersChildren`,`typeParameters`,`typeParametersChildren`,`returnType`]);return n?(0,e.defaultProps)(r,n):r}exports.getCallSignatureProps=t;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CallSignatureProps } from "@alloy-js/typescript";
|
|
2
|
-
|
|
3
|
-
//#region src/typescript/helpers/get-call-signature-props.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Get the properties for a call signature, applying any defaults as necessary.
|
|
6
|
-
*
|
|
7
|
-
* @param props - The properties for the call signature.
|
|
8
|
-
* @param defaults - Optional default properties to apply to the call signature.
|
|
9
|
-
* @returns The properties for the call signature, with defaults applied as necessary.
|
|
10
|
-
*/
|
|
11
|
-
declare function getCallSignatureProps(props: CallSignatureProps, defaults?: Partial<CallSignatureProps>): CallSignatureProps;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { getCallSignatureProps };
|
|
14
|
-
//# sourceMappingURL=get-call-signature-props.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-call-signature-props.d.cts","names":[],"sources":["../../../src/typescript/helpers/get-call-signature-props.ts"],"mappings":";;;;;AA4BA;;;;;iBAAgB,qBAAA,CACd,KAAA,EAAO,kBAAA,EACP,QAAA,GAAW,OAAA,CAAQ,kBAAA,IAAmB,kBAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CallSignatureProps } from "@alloy-js/typescript";
|
|
2
|
-
|
|
3
|
-
//#region src/typescript/helpers/get-call-signature-props.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Get the properties for a call signature, applying any defaults as necessary.
|
|
6
|
-
*
|
|
7
|
-
* @param props - The properties for the call signature.
|
|
8
|
-
* @param defaults - Optional default properties to apply to the call signature.
|
|
9
|
-
* @returns The properties for the call signature, with defaults applied as necessary.
|
|
10
|
-
*/
|
|
11
|
-
declare function getCallSignatureProps(props: CallSignatureProps, defaults?: Partial<CallSignatureProps>): CallSignatureProps;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { getCallSignatureProps };
|
|
14
|
-
//# sourceMappingURL=get-call-signature-props.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-call-signature-props.d.mts","names":[],"sources":["../../../src/typescript/helpers/get-call-signature-props.ts"],"mappings":";;;;;AA4BA;;;;;iBAAgB,qBAAA,CACd,KAAA,EAAO,kBAAA,EACP,QAAA,GAAW,OAAA,CAAQ,kBAAA,IAAmB,kBAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{defaultProps as e,splitProps as t}from"@alloy-js/core";function n(n,r){let[i]=t(n,[`parameters`,`parametersChildren`,`typeParameters`,`typeParametersChildren`,`returnType`]);return r?e(i,r):i}export{n as getCallSignatureProps};
|
|
2
|
-
//# sourceMappingURL=get-call-signature-props.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-call-signature-props.mjs","names":[],"sources":["../../../src/typescript/helpers/get-call-signature-props.ts"],"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 { defaultProps, splitProps } from \"@alloy-js/core\";\nimport { CallSignatureProps } from \"@alloy-js/typescript\";\n\n/**\n * Get the properties for a call signature, applying any defaults as necessary.\n *\n * @param props - The properties for the call signature.\n * @param defaults - Optional default properties to apply to the call signature.\n * @returns The properties for the call signature, with defaults applied as necessary.\n */\nexport function getCallSignatureProps(\n props: CallSignatureProps,\n defaults?: Partial<CallSignatureProps>\n) {\n const [callSignatureProps] = splitProps(props, [\n \"parameters\",\n \"parametersChildren\",\n \"typeParameters\",\n \"typeParametersChildren\",\n \"returnType\"\n ]);\n\n if (!defaults) {\n return callSignatureProps;\n }\n\n return defaultProps(callSignatureProps, defaults);\n}\n"],"mappings":"8DA4BA,SAAgB,EAAqB,EAAA,EAAA,CACnC,GAAM,CAAC,GAAkB,EAAA,EAAA,CAAA,aAAA,qBAAA,iBAAA,yBAAA,aAAA,CAAA,CAIzB,OAHA,EAGG,EAAW,EAAA,EAAA,CAFd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./get-call-signature-props.cjs`),t=require(`./utilities.cjs`);exports.getCallSignatureProps=e.getCallSignatureProps,exports.isValidJSIdentifier=t.isValidJSIdentifier;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{getCallSignatureProps as e}from"./get-call-signature-props.mjs";import{isValidJSIdentifier as t}from"./utilities.mjs";export{e as getCallSignatureProps,t as isValidJSIdentifier};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return/^[\p{ID_Start}$_][\p{ID_Continue}$\u200C\u200D]*$/u.test(e)}exports.isValidJSIdentifier=e;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/typescript/helpers/utilities.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Check if a string is a valid JavaScript identifier.
|
|
4
|
-
*
|
|
5
|
-
* @param identifier - The string to check.
|
|
6
|
-
* @returns `true` if the string is a valid JavaScript identifier, `false` otherwise.
|
|
7
|
-
*/
|
|
8
|
-
declare function isValidJSIdentifier(identifier: string): boolean;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { isValidJSIdentifier };
|
|
11
|
-
//# sourceMappingURL=utilities.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.cts","names":[],"sources":["../../../src/typescript/helpers/utilities.ts"],"mappings":";;AAwBA;;;;;iBAAgB,mBAAA,CAAoB,UAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/typescript/helpers/utilities.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Check if a string is a valid JavaScript identifier.
|
|
4
|
-
*
|
|
5
|
-
* @param identifier - The string to check.
|
|
6
|
-
* @returns `true` if the string is a valid JavaScript identifier, `false` otherwise.
|
|
7
|
-
*/
|
|
8
|
-
declare function isValidJSIdentifier(identifier: string): boolean;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { isValidJSIdentifier };
|
|
11
|
-
//# sourceMappingURL=utilities.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.mts","names":[],"sources":["../../../src/typescript/helpers/utilities.ts"],"mappings":";;AAwBA;;;;;iBAAgB,mBAAA,CAAoB,UAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.mjs","names":[],"sources":["../../../src/typescript/helpers/utilities.ts"],"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\n/**\n * Check if a string is a valid JavaScript identifier.\n *\n * @param identifier - The string to check.\n * @returns `true` if the string is a valid JavaScript identifier, `false` otherwise.\n */\nexport function isValidJSIdentifier(identifier: string) {\n return /^[\\p{ID_Start}$_][\\p{ID_Continue}$\\u200C\\u200D]*$/u.test(identifier);\n}\n"],"mappings":"AAwBA,SAAgB,EAAoB,EAAY,CAC9C,MAAO,qDAAqD,KAAK,EAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./components/tsdoc.cjs`),t=require(`./components/typescript-file.cjs`),n=require(`./components/builtin-file.cjs`),r=require(`./contexts/lexical-scope.cjs`);require(`./contexts/index.cjs`);const i=require(`./helpers/get-call-signature-props.cjs`),a=require(`./helpers/utilities.cjs`);require(`./helpers/index.cjs`);const o=require(`./components/property-name.cjs`),s=require(`./components/type-parameters.cjs`),c=require(`./components/class-declaration.cjs`),l=require(`./components/dynamic-import-statement.cjs`),u=require(`./components/entry-file.cjs`),d=require(`./components/tsdoc-reflection.cjs`),f=require(`./components/interface-declaration.cjs`),p=require(`./components/object-declaration.cjs`),m=require(`./components/record-expression.cjs`),h=require(`./components/type-declaration.cjs`);require(`./components/index.cjs`),exports.BuiltinFile=n.BuiltinFile,exports.ClassDeclaration=c.ClassDeclaration,exports.ClassField=c.ClassField,exports.ClassMember=c.ClassMember,exports.ClassMethod=c.ClassMethod,exports.ClassPropertyGet=c.ClassPropertyGet,exports.ClassPropertySet=c.ClassPropertySet,exports.DynamicImportStatement=l.DynamicImportStatement,exports.EntryFile=u.EntryFile,exports.InterfaceDeclaration=f.InterfaceDeclaration,exports.InterfaceDeclarationProperty=f.InterfaceDeclarationProperty,exports.InterfaceExpression=f.InterfaceExpression,exports.InterfaceMember=f.InterfaceMember,exports.LexicalScope=r.LexicalScope,exports.ObjectDeclaration=p.ObjectDeclaration,exports.ObjectDeclarationProperty=p.ObjectDeclarationProperty,exports.PropertyName=o.PropertyName,exports.RecordExpression=m.RecordExpression,exports.TSDoc=e.TSDoc,exports.TSDocAlias=e.TSDocAlias,exports.TSDocAttributesTags=e.TSDocAttributesTags,exports.TSDocContextClass=d.TSDocContextClass,exports.TSDocContextMethod=d.TSDocContextMethod,exports.TSDocContextProperty=d.TSDocContextProperty,exports.TSDocDefaultValue=e.TSDocDefaultValue,exports.TSDocDomain=e.TSDocDomain,exports.TSDocExample=e.TSDocExample,exports.TSDocHidden=e.TSDocHidden,exports.TSDocIgnore=e.TSDocIgnore,exports.TSDocInternal=e.TSDocInternal,exports.TSDocLink=e.TSDocLink,exports.TSDocModule=e.TSDocModule,exports.TSDocParam=e.TSDocParam,exports.TSDocParams=e.TSDocParams,exports.TSDocPermission=e.TSDocPermission,exports.TSDocReadonly=e.TSDocReadonly,exports.TSDocReflectionClass=d.TSDocReflectionClass,exports.TSDocReflectionMethod=d.TSDocReflectionMethod,exports.TSDocReflectionProperty=d.TSDocReflectionProperty,exports.TSDocRemarks=e.TSDocRemarks,exports.TSDocReturns=e.TSDocReturns,exports.TSDocRuntime=e.TSDocRuntime,exports.TSDocTag=e.TSDocTag,exports.TSDocThrows=e.TSDocThrows,exports.TSDocTitle=e.TSDocTitle,exports.TypeDeclaration=h.TypeDeclaration,exports.TypeParameters=s.TypeParameters,exports.TypescriptFile=t.TypescriptFile,exports.TypescriptFileHeader=t.TypescriptFileHeader,exports.TypescriptFileHeaderImports=t.TypescriptFileHeaderImports,exports.getCallSignatureProps=i.getCallSignatureProps,exports.isValidJSIdentifier=a.isValidJSIdentifier;
|
|
@@ -1,17 +0,0 @@
|
|
|
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, TSDocRuntime, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle } from "./components/tsdoc.cjs";
|
|
2
|
-
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps } from "./components/typescript-file.cjs";
|
|
3
|
-
import { BuiltinFile, BuiltinFileProps } from "./components/builtin-file.cjs";
|
|
4
|
-
import { TypeParameters, TypeParametersProps } from "./components/type-parameters.cjs";
|
|
5
|
-
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet } from "./components/class-declaration.cjs";
|
|
6
|
-
import { DynamicImportStatement, DynamicImportStatementProps } from "./components/dynamic-import-statement.cjs";
|
|
7
|
-
import { EntryFile, EntryFileProps } from "./components/entry-file.cjs";
|
|
8
|
-
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps } from "./components/interface-declaration.cjs";
|
|
9
|
-
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps } from "./components/object-declaration.cjs";
|
|
10
|
-
import { PropertyName, PropertyNameProps } from "./components/property-name.cjs";
|
|
11
|
-
import { RecordExpression, RecordExpressionProps } from "./components/record-expression.cjs";
|
|
12
|
-
import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps } from "./components/tsdoc-reflection.cjs";
|
|
13
|
-
import { TypeDeclaration, TypeDeclarationProps } from "./components/type-declaration.cjs";
|
|
14
|
-
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.cjs";
|
|
15
|
-
import { getCallSignatureProps } from "./helpers/get-call-signature-props.cjs";
|
|
16
|
-
import { isValidJSIdentifier } from "./helpers/utilities.cjs";
|
|
17
|
-
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, 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, TSDocRuntime, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
|