@powerlines/plugin-alloy 0.18.46 → 0.18.47
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/core/components/output.cjs +2 -2
- package/dist/core/components/output.mjs +4 -4
- package/dist/core/contexts/context.cjs +1 -50
- package/dist/core/contexts/context.mjs +2 -46
- package/dist/index.cjs +2 -5
- package/dist/index.mjs +0 -3
- package/dist/powerlines/src/types/api.d.cts +3 -3
- package/dist/powerlines/src/types/api.d.mts +3 -3
- package/dist/powerlines/src/types/build.d.cts +10 -10
- package/dist/powerlines/src/types/build.d.mts +10 -10
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.mts +1 -1
- package/dist/powerlines/src/types/config.d.cts +5 -5
- package/dist/powerlines/src/types/config.d.mts +5 -5
- package/dist/powerlines/src/types/context.d.cts +5 -5
- package/dist/powerlines/src/types/context.d.mts +5 -5
- package/dist/powerlines/src/types/hooks.d.cts +1 -1
- package/dist/powerlines/src/types/hooks.d.mts +1 -1
- package/dist/powerlines/src/types/plugin.d.cts +5 -5
- package/dist/powerlines/src/types/plugin.d.mts +5 -5
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.d.cts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -9
- package/dist/types/plugin.d.mts +1 -9
- package/package.json +5 -5
- package/dist/core/components/index.cjs +0 -7
- package/dist/core/components/index.d.cts +0 -4
- package/dist/core/components/index.d.mts +0 -4
- package/dist/core/components/index.mjs +0 -5
- package/dist/core/components/output.d.cts +0 -23
- package/dist/core/components/output.d.mts +0 -23
- package/dist/core/components/single-line-comment.cjs +0 -22
- package/dist/core/components/single-line-comment.d.cts +0 -22
- package/dist/core/components/single-line-comment.d.mts +0 -22
- package/dist/core/components/single-line-comment.mjs +0 -21
- package/dist/core/components/source-file.cjs +0 -64
- package/dist/core/components/source-file.d.cts +0 -32
- package/dist/core/components/source-file.d.mts +0 -32
- package/dist/core/components/source-file.mjs +0 -62
- package/dist/core/contexts/context.d.cts +0 -71
- package/dist/core/contexts/context.d.mts +0 -71
- package/dist/core/contexts/index.cjs +0 -17
- package/dist/core/contexts/index.d.cts +0 -3
- package/dist/core/contexts/index.d.mts +0 -3
- package/dist/core/contexts/index.mjs +0 -4
- package/dist/core/contexts/reflection.cjs +0 -68
- package/dist/core/contexts/reflection.d.cts +0 -52
- package/dist/core/contexts/reflection.d.mts +0 -52
- package/dist/core/contexts/reflection.mjs +0 -60
- package/dist/core/index.cjs +0 -25
- package/dist/core/index.d.cts +0 -7
- package/dist/core/index.d.mts +0 -8
- package/dist/core/index.mjs +0 -9
- package/dist/helpers/capnp.cjs +0 -276
- package/dist/helpers/capnp.d.cts +0 -87
- package/dist/helpers/capnp.d.mts +0 -87
- package/dist/helpers/capnp.mjs +0 -259
- package/dist/helpers/create-builtin.cjs +0 -19
- package/dist/helpers/create-builtin.d.cts +0 -15
- package/dist/helpers/create-builtin.d.mts +0 -15
- package/dist/helpers/create-builtin.mjs +0 -18
- package/dist/helpers/index.cjs +0 -24
- package/dist/helpers/index.d.cts +0 -5
- package/dist/helpers/index.d.mts +0 -5
- package/dist/helpers/index.mjs +0 -6
- package/dist/helpers/refkey.cjs +0 -16
- package/dist/helpers/refkey.d.cts +0 -13
- package/dist/helpers/refkey.d.mts +0 -13
- package/dist/helpers/refkey.mjs +0 -15
- package/dist/helpers/typescript.cjs +0 -46
- package/dist/helpers/typescript.d.cts +0 -25
- package/dist/helpers/typescript.d.mts +0 -25
- package/dist/helpers/typescript.mjs +0 -45
- package/dist/markdown/components/index.cjs +0 -8
- package/dist/markdown/components/index.d.cts +0 -3
- package/dist/markdown/components/index.d.mts +0 -3
- package/dist/markdown/components/index.mjs +0 -4
- package/dist/markdown/components/markdown-file.cjs +0 -116
- package/dist/markdown/components/markdown-file.d.cts +0 -23
- package/dist/markdown/components/markdown-file.d.mts +0 -23
- package/dist/markdown/components/markdown-file.mjs +0 -114
- package/dist/markdown/components/markdown-table.cjs +0 -101
- package/dist/markdown/components/markdown-table.d.cts +0 -27
- package/dist/markdown/components/markdown-table.d.mts +0 -27
- package/dist/markdown/components/markdown-table.mjs +0 -98
- package/dist/markdown/contexts/index.cjs +0 -6
- 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 -3
- package/dist/markdown/contexts/markdown-table.cjs +0 -37
- package/dist/markdown/contexts/markdown-table.d.cts +0 -37
- package/dist/markdown/contexts/markdown-table.d.mts +0 -37
- package/dist/markdown/contexts/markdown-table.mjs +0 -33
- package/dist/markdown/index.cjs +0 -15
- package/dist/markdown/index.d.cts +0 -4
- package/dist/markdown/index.d.mts +0 -6
- package/dist/markdown/index.mjs +0 -7
- package/dist/types/components.cjs +0 -0
- package/dist/types/components.d.cts +0 -142
- package/dist/types/components.d.mts +0 -142
- package/dist/types/components.mjs +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.mjs +0 -1
- package/dist/typescript/components/builtin-file.cjs +0 -62
- package/dist/typescript/components/builtin-file.d.cts +0 -34
- package/dist/typescript/components/builtin-file.d.mts +0 -34
- package/dist/typescript/components/builtin-file.mjs +0 -61
- package/dist/typescript/components/dynamic-import-statement.cjs +0 -25
- package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
- package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
- package/dist/typescript/components/dynamic-import-statement.mjs +0 -24
- package/dist/typescript/components/entry-file.cjs +0 -41
- package/dist/typescript/components/entry-file.d.cts +0 -27
- package/dist/typescript/components/entry-file.d.mts +0 -27
- package/dist/typescript/components/entry-file.mjs +0 -39
- package/dist/typescript/components/index.cjs +0 -44
- package/dist/typescript/components/index.d.cts +0 -10
- package/dist/typescript/components/index.d.mts +0 -10
- package/dist/typescript/components/index.mjs +0 -11
- package/dist/typescript/components/record-expression.cjs +0 -12
- package/dist/typescript/components/record-expression.d.cts +0 -12
- package/dist/typescript/components/record-expression.d.mts +0 -12
- package/dist/typescript/components/record-expression.mjs +0 -11
- package/dist/typescript/components/tsdoc-reflection.cjs +0 -177
- package/dist/typescript/components/tsdoc-reflection.d.cts +0 -18
- package/dist/typescript/components/tsdoc-reflection.d.mts +0 -18
- package/dist/typescript/components/tsdoc-reflection.mjs +0 -174
- package/dist/typescript/components/tsdoc.cjs +0 -481
- package/dist/typescript/components/tsdoc.d.cts +0 -163
- package/dist/typescript/components/tsdoc.d.mts +0 -163
- package/dist/typescript/components/tsdoc.mjs +0 -461
- package/dist/typescript/components/typescript-file.cjs +0 -216
- package/dist/typescript/components/typescript-file.d.cts +0 -49
- package/dist/typescript/components/typescript-file.d.mts +0 -49
- package/dist/typescript/components/typescript-file.mjs +0 -213
- package/dist/typescript/components/typescript-interface.cjs +0 -69
- package/dist/typescript/components/typescript-interface.d.cts +0 -25
- package/dist/typescript/components/typescript-interface.d.mts +0 -25
- package/dist/typescript/components/typescript-interface.mjs +0 -67
- package/dist/typescript/components/typescript-object.cjs +0 -125
- package/dist/typescript/components/typescript-object.d.cts +0 -26
- package/dist/typescript/components/typescript-object.d.mts +0 -26
- package/dist/typescript/components/typescript-object.mjs +0 -123
- package/dist/typescript/index.cjs +0 -45
- package/dist/typescript/index.d.cts +0 -11
- package/dist/typescript/index.d.mts +0 -11
- package/dist/typescript/index.mjs +0 -12
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
|
-
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
4
|
-
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
5
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
7
|
-
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
8
|
-
let __stryke_path_replace = require("@stryke/path/replace");
|
|
9
|
-
let __stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
10
|
-
|
|
11
|
-
//#region src/typescript/components/builtin-file.tsx
|
|
12
|
-
/**
|
|
13
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
14
|
-
*
|
|
15
|
-
* @param props - The properties for the source file.
|
|
16
|
-
* @returns The rendered source file component.
|
|
17
|
-
*/
|
|
18
|
-
function BuiltinFile(props) {
|
|
19
|
-
const [{ children, imports, builtinImports, id, description, tsx }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
20
|
-
"children",
|
|
21
|
-
"imports",
|
|
22
|
-
"builtinImports",
|
|
23
|
-
"id",
|
|
24
|
-
"description",
|
|
25
|
-
"tsx"
|
|
26
|
-
]);
|
|
27
|
-
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
28
|
-
const path = (0, __alloy_js_core.computed)(() => (0, __stryke_path_replace.replacePath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? id : (0, __stryke_path_replace.replaceExtension)(id)}${(0, __stryke_path_file_path_fns.hasFileExtension)(id) && !(0, __stryke_type_checks_is_set.isSet)(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.builtinsPath));
|
|
29
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
30
|
-
get header() {
|
|
31
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFileHeader, {
|
|
32
|
-
get header() {
|
|
33
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocModule, {
|
|
34
|
-
name: id,
|
|
35
|
-
children: description
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
get children() {
|
|
39
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFileHeaderImports, {
|
|
40
|
-
imports,
|
|
41
|
-
builtinImports
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
get meta() {
|
|
47
|
-
return {
|
|
48
|
-
kind: "builtin",
|
|
49
|
-
extension: tsx ? "tsx" : "ts",
|
|
50
|
-
id: (0, __stryke_path_replace.replaceExtension)(id)
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}, rest, {
|
|
54
|
-
get path() {
|
|
55
|
-
return path.value;
|
|
56
|
-
},
|
|
57
|
-
children
|
|
58
|
-
}));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
exports.BuiltinFile = BuiltinFile;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { TSDocModuleProps } from "./tsdoc.cjs";
|
|
2
|
-
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
-
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/builtin-file.d.ts
|
|
6
|
-
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
7
|
-
/**
|
|
8
|
-
* The runtime module identifier.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* This value will be included after the \`storm:\` prefix in the import statement.
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* The description for the builtin module.
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the file is a TSX file.
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue false
|
|
22
|
-
*/
|
|
23
|
-
tsx?: boolean;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
27
|
-
*
|
|
28
|
-
* @param props - The properties for the source file.
|
|
29
|
-
* @returns The rendered source file component.
|
|
30
|
-
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core14.Children;
|
|
32
|
-
declare type __ΩBuiltinFileProps = any[];
|
|
33
|
-
//#endregion
|
|
34
|
-
export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { TSDocModuleProps } from "./tsdoc.mjs";
|
|
2
|
-
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
-
import * as _alloy_js_core13 from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/builtin-file.d.ts
|
|
6
|
-
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
7
|
-
/**
|
|
8
|
-
* The runtime module identifier.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* This value will be included after the \`storm:\` prefix in the import statement.
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* The description for the builtin module.
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the file is a TSX file.
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue false
|
|
22
|
-
*/
|
|
23
|
-
tsx?: boolean;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
27
|
-
*
|
|
28
|
-
* @param props - The properties for the source file.
|
|
29
|
-
* @returns The rendered source file component.
|
|
30
|
-
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core13.Children;
|
|
32
|
-
declare type __ΩBuiltinFileProps = any[];
|
|
33
|
-
//#endregion
|
|
34
|
-
export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
-
import { TSDocModule } from "./tsdoc.mjs";
|
|
3
|
-
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript-file.mjs";
|
|
4
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
|
-
import { computed, splitProps } from "@alloy-js/core";
|
|
6
|
-
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
7
|
-
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
8
|
-
import { isSet } from "@stryke/type-checks/is-set";
|
|
9
|
-
|
|
10
|
-
//#region src/typescript/components/builtin-file.tsx
|
|
11
|
-
/**
|
|
12
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the source file.
|
|
15
|
-
* @returns The rendered source file component.
|
|
16
|
-
*/
|
|
17
|
-
function BuiltinFile(props) {
|
|
18
|
-
const [{ children, imports, builtinImports, id, description, tsx }, rest] = splitProps(props, [
|
|
19
|
-
"children",
|
|
20
|
-
"imports",
|
|
21
|
-
"builtinImports",
|
|
22
|
-
"id",
|
|
23
|
-
"description",
|
|
24
|
-
"tsx"
|
|
25
|
-
]);
|
|
26
|
-
const context = usePowerlinesSafe();
|
|
27
|
-
const path = computed(() => replacePath(`${!isSet(tsx) ? id : replaceExtension(id)}${hasFileExtension(id) && !isSet(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.builtinsPath));
|
|
28
|
-
return createComponent(TypescriptFile, mergeProps({
|
|
29
|
-
get header() {
|
|
30
|
-
return createComponent(TypescriptFileHeader, {
|
|
31
|
-
get header() {
|
|
32
|
-
return createComponent(TSDocModule, {
|
|
33
|
-
name: id,
|
|
34
|
-
children: description
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
get children() {
|
|
38
|
-
return createComponent(TypescriptFileHeaderImports, {
|
|
39
|
-
imports,
|
|
40
|
-
builtinImports
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
},
|
|
45
|
-
get meta() {
|
|
46
|
-
return {
|
|
47
|
-
kind: "builtin",
|
|
48
|
-
extension: tsx ? "tsx" : "ts",
|
|
49
|
-
id: replaceExtension(id)
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}, rest, {
|
|
53
|
-
get path() {
|
|
54
|
-
return path.value;
|
|
55
|
-
},
|
|
56
|
-
children
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
export { BuiltinFile };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/dynamic-import-statement.tsx
|
|
7
|
-
/**
|
|
8
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
13
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @param props - The properties for the dynamic import statement.
|
|
17
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
18
|
-
*/
|
|
19
|
-
function DynamicImportStatement(props) {
|
|
20
|
-
const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
|
|
21
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, (0, __alloy_js_core_jsx_runtime.mergeProps)({ "const": isConst }, rest, { initializer: __alloy_js_core.code`await import("${importPath}").then(m => m.${exportName});` }));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
exports.DynamicImportStatement = DynamicImportStatement;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
2
|
-
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
-
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
-
/**
|
|
7
|
-
* The path of the module to import.
|
|
8
|
-
*/
|
|
9
|
-
importPath: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the export to import from the module.
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue "default"
|
|
14
|
-
*/
|
|
15
|
-
exportName?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the dynamic import statement.
|
|
27
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
-
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core8.Children;
|
|
30
|
-
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
-
//#endregion
|
|
32
|
-
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core9 from "@alloy-js/core";
|
|
2
|
-
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
-
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
-
/**
|
|
7
|
-
* The path of the module to import.
|
|
8
|
-
*/
|
|
9
|
-
importPath: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the export to import from the module.
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue "default"
|
|
14
|
-
*/
|
|
15
|
-
exportName?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the dynamic import statement.
|
|
27
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
-
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core9.Children;
|
|
30
|
-
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
-
//#endregion
|
|
32
|
-
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { code } from "@alloy-js/core";
|
|
3
|
-
import { VarDeclaration } from "@alloy-js/typescript";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/dynamic-import-statement.tsx
|
|
6
|
-
/**
|
|
7
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
12
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @param props - The properties for the dynamic import statement.
|
|
16
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
17
|
-
*/
|
|
18
|
-
function DynamicImportStatement(props) {
|
|
19
|
-
const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
|
|
20
|
-
return createComponent(VarDeclaration, mergeProps({ "const": isConst }, rest, { initializer: code`await import("${importPath}").then(m => m.${exportName});` }));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { DynamicImportStatement };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
|
-
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
4
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
7
|
-
let __stryke_path_replace = require("@stryke/path/replace");
|
|
8
|
-
let defu = require("defu");
|
|
9
|
-
defu = require_rolldown_runtime.__toESM(defu);
|
|
10
|
-
let __stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
11
|
-
|
|
12
|
-
//#region src/typescript/components/entry-file.tsx
|
|
13
|
-
/**
|
|
14
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
15
|
-
*
|
|
16
|
-
* @param props - The properties for the source file.
|
|
17
|
-
* @returns The rendered source file component.
|
|
18
|
-
*/
|
|
19
|
-
function EntryFile(props) {
|
|
20
|
-
const [{ children, meta, tsx, path, typeDefinition }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
21
|
-
"children",
|
|
22
|
-
"meta",
|
|
23
|
-
"tsx",
|
|
24
|
-
"path",
|
|
25
|
-
"typeDefinition"
|
|
26
|
-
]);
|
|
27
|
-
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
28
|
-
const fullPath = (0, __alloy_js_core.computed)(() => (0, __stryke_path_replace.replacePath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? path : (0, __stryke_path_replace.replaceExtension)(path)}${(0, __stryke_path_file_path_fns.hasFileExtension)(path) && !(0, __stryke_type_checks_is_set.isSet)(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.entryPath));
|
|
29
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
30
|
-
get path() {
|
|
31
|
-
return fullPath.value;
|
|
32
|
-
},
|
|
33
|
-
get meta() {
|
|
34
|
-
return (0, defu.default)({ kind: "entry" }, meta ?? {}, { typeDefinition });
|
|
35
|
-
},
|
|
36
|
-
children
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
exports.EntryFile = EntryFile;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.cjs";
|
|
2
|
-
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
-
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
-
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Whether the file is a TSX file.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue false
|
|
11
|
-
*/
|
|
12
|
-
tsx?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Render metadata information about the entrypoint
|
|
15
|
-
*/
|
|
16
|
-
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
-
*
|
|
21
|
-
* @param props - The properties for the source file.
|
|
22
|
-
* @returns The rendered source file component.
|
|
23
|
-
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps): _alloy_js_core7.Children;
|
|
25
|
-
declare type __ΩEntryFileProps = any[];
|
|
26
|
-
//#endregion
|
|
27
|
-
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.mjs";
|
|
2
|
-
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
-
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
-
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Whether the file is a TSX file.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue false
|
|
11
|
-
*/
|
|
12
|
-
tsx?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Render metadata information about the entrypoint
|
|
15
|
-
*/
|
|
16
|
-
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
-
*
|
|
21
|
-
* @param props - The properties for the source file.
|
|
22
|
-
* @returns The rendered source file component.
|
|
23
|
-
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps): _alloy_js_core12.Children;
|
|
25
|
-
declare type __ΩEntryFileProps = any[];
|
|
26
|
-
//#endregion
|
|
27
|
-
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
-
import { TypescriptFile } from "./typescript-file.mjs";
|
|
3
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
|
-
import { computed, splitProps } from "@alloy-js/core";
|
|
5
|
-
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
6
|
-
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
7
|
-
import defu from "defu";
|
|
8
|
-
import { isSet } from "@stryke/type-checks/is-set";
|
|
9
|
-
|
|
10
|
-
//#region src/typescript/components/entry-file.tsx
|
|
11
|
-
/**
|
|
12
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the source file.
|
|
15
|
-
* @returns The rendered source file component.
|
|
16
|
-
*/
|
|
17
|
-
function EntryFile(props) {
|
|
18
|
-
const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(props, [
|
|
19
|
-
"children",
|
|
20
|
-
"meta",
|
|
21
|
-
"tsx",
|
|
22
|
-
"path",
|
|
23
|
-
"typeDefinition"
|
|
24
|
-
]);
|
|
25
|
-
const context = usePowerlinesSafe();
|
|
26
|
-
const fullPath = computed(() => replacePath(`${!isSet(tsx) ? path : replaceExtension(path)}${hasFileExtension(path) && !isSet(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.entryPath));
|
|
27
|
-
return createComponent(TypescriptFile, mergeProps(rest, {
|
|
28
|
-
get path() {
|
|
29
|
-
return fullPath.value;
|
|
30
|
-
},
|
|
31
|
-
get meta() {
|
|
32
|
-
return defu({ kind: "entry" }, meta ?? {}, { typeDefinition });
|
|
33
|
-
},
|
|
34
|
-
children
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
export { EntryFile };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
2
|
-
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
3
|
-
const require_typescript_components_builtin_file = require('./builtin-file.cjs');
|
|
4
|
-
const require_typescript_components_dynamic_import_statement = require('./dynamic-import-statement.cjs');
|
|
5
|
-
const require_typescript_components_entry_file = require('./entry-file.cjs');
|
|
6
|
-
const require_typescript_components_record_expression = require('./record-expression.cjs');
|
|
7
|
-
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
8
|
-
const require_typescript_components_typescript_interface = require('./typescript-interface.cjs');
|
|
9
|
-
const require_typescript_components_typescript_object = require('./typescript-object.cjs');
|
|
10
|
-
|
|
11
|
-
exports.BuiltinFile = require_typescript_components_builtin_file.BuiltinFile;
|
|
12
|
-
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
13
|
-
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
14
|
-
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
15
|
-
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
16
|
-
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
17
|
-
exports.TSDocAttributesTags = require_typescript_components_tsdoc.TSDocAttributesTags;
|
|
18
|
-
exports.TSDocDefaultValue = require_typescript_components_tsdoc.TSDocDefaultValue;
|
|
19
|
-
exports.TSDocDomain = require_typescript_components_tsdoc.TSDocDomain;
|
|
20
|
-
exports.TSDocExample = require_typescript_components_tsdoc.TSDocExample;
|
|
21
|
-
exports.TSDocHidden = require_typescript_components_tsdoc.TSDocHidden;
|
|
22
|
-
exports.TSDocIgnore = require_typescript_components_tsdoc.TSDocIgnore;
|
|
23
|
-
exports.TSDocInternal = require_typescript_components_tsdoc.TSDocInternal;
|
|
24
|
-
exports.TSDocLink = require_typescript_components_tsdoc.TSDocLink;
|
|
25
|
-
exports.TSDocModule = require_typescript_components_tsdoc.TSDocModule;
|
|
26
|
-
exports.TSDocParam = require_typescript_components_tsdoc.TSDocParam;
|
|
27
|
-
exports.TSDocParams = require_typescript_components_tsdoc.TSDocParams;
|
|
28
|
-
exports.TSDocPermission = require_typescript_components_tsdoc.TSDocPermission;
|
|
29
|
-
exports.TSDocReadonly = require_typescript_components_tsdoc.TSDocReadonly;
|
|
30
|
-
exports.TSDocReflectionClass = require_typescript_components_tsdoc_reflection.TSDocReflectionClass;
|
|
31
|
-
exports.TSDocReflectionMethod = require_typescript_components_tsdoc_reflection.TSDocReflectionMethod;
|
|
32
|
-
exports.TSDocReflectionProperty = require_typescript_components_tsdoc_reflection.TSDocReflectionProperty;
|
|
33
|
-
exports.TSDocRemarks = require_typescript_components_tsdoc.TSDocRemarks;
|
|
34
|
-
exports.TSDocReturns = require_typescript_components_tsdoc.TSDocReturns;
|
|
35
|
-
exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
36
|
-
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
37
|
-
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
38
|
-
exports.TypeScriptInterface = require_typescript_components_typescript_interface.TypeScriptInterface;
|
|
39
|
-
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
40
|
-
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
41
|
-
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
42
|
-
exports.TypescriptInterfaceProperty = require_typescript_components_typescript_interface.TypescriptInterfaceProperty;
|
|
43
|
-
exports.TypescriptObject = require_typescript_components_typescript_object.TypescriptObject;
|
|
44
|
-
exports.TypescriptObjectProperty = require_typescript_components_typescript_object.TypescriptObjectProperty;
|
|
@@ -1,10 +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, 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 { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.cjs";
|
|
5
|
-
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.cjs";
|
|
6
|
-
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.cjs";
|
|
7
|
-
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.cjs";
|
|
8
|
-
import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./typescript-interface.cjs";
|
|
9
|
-
import { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./typescript-object.cjs";
|
|
10
|
-
export { BuiltinFile, BuiltinFileProps, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,10 +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, 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 { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.mjs";
|
|
5
|
-
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.mjs";
|
|
6
|
-
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.mjs";
|
|
7
|
-
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
8
|
-
import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./typescript-interface.mjs";
|
|
9
|
-
import { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./typescript-object.mjs";
|
|
10
|
-
export { BuiltinFile, BuiltinFileProps, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,11 +0,0 @@
|
|
|
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 { DynamicImportStatement } from "./dynamic-import-statement.mjs";
|
|
5
|
-
import { EntryFile } from "./entry-file.mjs";
|
|
6
|
-
import { RecordExpression } from "./record-expression.mjs";
|
|
7
|
-
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
8
|
-
import { TypeScriptInterface, TypescriptInterfaceProperty } from "./typescript-interface.mjs";
|
|
9
|
-
import { TypescriptObject, TypescriptObjectProperty } from "./typescript-object.mjs";
|
|
10
|
-
|
|
11
|
-
export { BuiltinFile, DynamicImportStatement, EntryFile, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeScriptInterface, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptInterfaceProperty, TypescriptObject, TypescriptObjectProperty };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/record-expression.tsx
|
|
5
|
-
function RecordExpression({ elementType }) {
|
|
6
|
-
return __alloy_js_core.code`
|
|
7
|
-
Record<string, ${elementType}>
|
|
8
|
-
`;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.RecordExpression = RecordExpression;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/typescript/components/record-expression.d.ts
|
|
4
|
-
interface RecordExpressionProps {
|
|
5
|
-
elementType: Children;
|
|
6
|
-
}
|
|
7
|
-
declare function RecordExpression({
|
|
8
|
-
elementType
|
|
9
|
-
}: RecordExpressionProps): Children;
|
|
10
|
-
declare type __ΩRecordExpressionProps = any[];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/typescript/components/record-expression.d.ts
|
|
4
|
-
interface RecordExpressionProps {
|
|
5
|
-
elementType: Children;
|
|
6
|
-
}
|
|
7
|
-
declare function RecordExpression({
|
|
8
|
-
elementType
|
|
9
|
-
}: RecordExpressionProps): Children;
|
|
10
|
-
declare type __ΩRecordExpressionProps = any[];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps };
|