@powerlines/plugin-alloy 0.15.4 → 0.15.6
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/index.cjs +1 -1
- package/dist/core/components/index.mjs +1 -1
- package/dist/core/components/output.d.cts +2 -2
- package/dist/core/components/output.d.mts +2 -2
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/source-file.d.cts +2 -2
- package/dist/core/components/source-file.d.mts +2 -2
- package/dist/core/contexts/reflection.d.cts +7 -8
- package/dist/core/contexts/reflection.d.mts +7 -8
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/deepkit/src/utilities.cjs +112 -0
- package/dist/deepkit/src/utilities.mjs +108 -0
- package/dist/helpers/capnp.cjs +31 -33
- package/dist/helpers/capnp.d.cts +13 -14
- package/dist/helpers/capnp.d.mts +13 -14
- package/dist/helpers/capnp.mjs +9 -11
- package/dist/helpers/index.cjs +2 -2
- package/dist/helpers/index.mjs +2 -2
- package/dist/helpers/typescript.cjs +3 -3
- package/dist/helpers/typescript.d.cts +1 -3
- package/dist/helpers/typescript.d.mts +1 -3
- package/dist/helpers/typescript.mjs +2 -2
- package/dist/index.cjs +22 -16
- package/dist/index.mjs +22 -16
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-file.d.mts +3 -3
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- package/dist/markdown/components/markdown-table.d.mts +4 -4
- package/dist/powerlines/src/lib/utilities/file-header.cjs +13 -0
- package/dist/powerlines/src/lib/utilities/file-header.mjs +12 -0
- package/dist/powerlines/src/types/config.d.cts +12 -0
- package/dist/powerlines/src/types/config.d.mts +12 -0
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/tsdoc-reflection.cjs +2 -2
- package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
- package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
- package/dist/typescript/components/tsdoc-reflection.mjs +2 -2
- package/dist/typescript/components/tsdoc.cjs +2 -2
- package/dist/typescript/components/tsdoc.mjs +1 -1
- package/dist/typescript/components/typescript-file.cjs +2 -2
- package/dist/typescript/components/typescript-file.mjs +2 -2
- package/dist/typescript/components/typescript-interface.cjs +2 -3
- package/dist/typescript/components/typescript-interface.d.cts +2 -3
- package/dist/typescript/components/typescript-interface.d.mts +5 -6
- package/dist/typescript/components/typescript-interface.mjs +1 -2
- package/dist/typescript/components/typescript-object.cjs +5 -5
- package/dist/typescript/components/typescript-object.d.cts +2 -3
- package/dist/typescript/components/typescript-object.d.mts +5 -6
- package/dist/typescript/components/typescript-object.mjs +4 -4
- package/dist/vendor.cjs +12594 -0
- package/dist/vendor.d.cts +1 -0
- package/dist/vendor.d.ts +1 -0
- package/dist/vendor.js +12424 -0
- package/package.json +23 -7
- package/dist/_virtual/rolldown_runtime.mjs +0 -31
- package/dist/deepkit/src/vendor/type.d.cts +0 -7
- package/dist/deepkit/src/vendor/type.d.mts +0 -7
package/dist/index.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { PowerlinesContext, usePowerlines, usePowerlinesContext } from "./core/contexts/context.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Output } from "./core/components/output.mjs";
|
|
3
3
|
import { SingleLineComment } from "./core/components/single-line-comment.mjs";
|
|
4
4
|
import { SourceFile } from "./core/components/source-file.mjs";
|
|
5
|
+
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./core/contexts/reflection.mjs";
|
|
6
|
+
import "./core/index.mjs";
|
|
7
|
+
import { LARGE_BUFFER, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue } from "./helpers/capnp.mjs";
|
|
8
|
+
import { createBuiltin } from "./helpers/create-builtin.mjs";
|
|
9
|
+
import { refkey } from "./helpers/refkey.mjs";
|
|
10
|
+
import { generateTypeScriptObject } from "./helpers/typescript.mjs";
|
|
11
|
+
import "./helpers/index.mjs";
|
|
12
|
+
import { MarkdownFile, MarkdownFileHeader } from "./markdown/components/markdown-file.mjs";
|
|
13
|
+
import { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn } from "./markdown/contexts/markdown-table.mjs";
|
|
14
|
+
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./markdown/components/markdown-table.mjs";
|
|
15
|
+
import "./markdown/index.mjs";
|
|
16
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle } from "./typescript/components/tsdoc.mjs";
|
|
5
17
|
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript/components/typescript-file.mjs";
|
|
6
18
|
import { BuiltinFile } from "./typescript/components/builtin-file.mjs";
|
|
7
19
|
import { DynamicImportStatement } from "./typescript/components/dynamic-import-statement.mjs";
|
|
8
20
|
import { EntryFile } from "./typescript/components/entry-file.mjs";
|
|
9
21
|
import { RecordExpression } from "./typescript/components/record-expression.mjs";
|
|
10
|
-
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./core/contexts/reflection.mjs";
|
|
11
22
|
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./typescript/components/tsdoc-reflection.mjs";
|
|
12
23
|
import { TypeScriptInterface, TypescriptInterfaceProperty } from "./typescript/components/typescript-interface.mjs";
|
|
13
24
|
import { TypescriptObject, TypescriptObjectProperty } from "./typescript/components/typescript-object.mjs";
|
|
14
25
|
import "./typescript/index.mjs";
|
|
15
|
-
import { MarkdownFile, MarkdownFileHeader } from "./markdown/components/markdown-file.mjs";
|
|
16
|
-
import { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn } from "./markdown/contexts/markdown-table.mjs";
|
|
17
|
-
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./markdown/components/markdown-table.mjs";
|
|
18
|
-
import "./markdown/index.mjs";
|
|
19
|
-
import { generateTypeScriptObject } from "./helpers/typescript.mjs";
|
|
20
|
-
import { refkey } from "./helpers/refkey.mjs";
|
|
21
|
-
import { LARGE_BUFFER, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue } from "./helpers/capnp.mjs";
|
|
22
|
-
import { createBuiltin } from "./helpers/create-builtin.mjs";
|
|
23
|
-
import "./helpers/index.mjs";
|
|
24
|
-
import { Output } from "./core/components/output.mjs";
|
|
25
|
-
import "./core/index.mjs";
|
|
26
26
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
27
27
|
import { flushJobsAsync, getContextForRenderNode, isPrintHook, renderTree } from "@alloy-js/core";
|
|
28
|
-
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
29
|
-
import { replacePath } from "@stryke/path/replace";
|
|
30
28
|
import alloy from "@alloy-js/rollup-plugin";
|
|
31
29
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
32
30
|
import { StormJSON } from "@stryke/json/storm-json";
|
|
33
31
|
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
32
|
+
import { replacePath } from "@stryke/path/replace";
|
|
33
|
+
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
34
34
|
import { printer } from "prettier/doc.js";
|
|
35
35
|
|
|
36
36
|
//#region src/index.tsx
|
|
@@ -55,7 +55,13 @@ const plugin = (options = {}) => {
|
|
|
55
55
|
pragma: "Alloy.createElement",
|
|
56
56
|
importSource: "@alloy-js/core"
|
|
57
57
|
} } },
|
|
58
|
-
plugins: [alloy()]
|
|
58
|
+
plugins: [alloy()],
|
|
59
|
+
alias: { "@alloy-js/core": "@powerlines/plugin-alloy/vendor" },
|
|
60
|
+
external: [
|
|
61
|
+
"@alloy-js/core",
|
|
62
|
+
"@vue/reactivity",
|
|
63
|
+
"@vue/shared"
|
|
64
|
+
]
|
|
59
65
|
}
|
|
60
66
|
};
|
|
61
67
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-file.d.ts
|
|
6
6
|
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
@@ -10,14 +10,14 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
|
10
10
|
* @param props - The properties for the source file.
|
|
11
11
|
* @returns The rendered source file component.
|
|
12
12
|
*/
|
|
13
|
-
declare function MarkdownFile(props: MarkdownFileProps):
|
|
13
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core4.Children;
|
|
14
14
|
/**
|
|
15
15
|
* Renders the header for a Powerlines Typescript source file.
|
|
16
16
|
*
|
|
17
17
|
* @param props - The properties for the source file header.
|
|
18
18
|
* @returns The rendered source file header.
|
|
19
19
|
*/
|
|
20
|
-
declare function MarkdownFileHeader(props: SourceFileHeaderProps):
|
|
20
|
+
declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core4.Children;
|
|
21
21
|
declare type __ΩMarkdownFileProps = any[];
|
|
22
22
|
//#endregion
|
|
23
23
|
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-file.d.ts
|
|
6
6
|
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
@@ -10,14 +10,14 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
|
10
10
|
* @param props - The properties for the source file.
|
|
11
11
|
* @returns The rendered source file component.
|
|
12
12
|
*/
|
|
13
|
-
declare function MarkdownFile(props: MarkdownFileProps):
|
|
13
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core7.Children;
|
|
14
14
|
/**
|
|
15
15
|
* Renders the header for a Powerlines Typescript source file.
|
|
16
16
|
*
|
|
17
17
|
* @param props - The properties for the source file header.
|
|
18
18
|
* @returns The rendered source file header.
|
|
19
19
|
*/
|
|
20
|
-
declare function MarkdownFileHeader(props: SourceFileHeaderProps):
|
|
20
|
+
declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core7.Children;
|
|
21
21
|
declare type __ΩMarkdownFileProps = any[];
|
|
22
22
|
//#endregion
|
|
23
23
|
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
2
|
import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core6 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-table.d.ts
|
|
6
6
|
interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
|
|
@@ -9,18 +9,18 @@ interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>
|
|
|
9
9
|
/**
|
|
10
10
|
* Component that provides a context for rendering markdown tables.
|
|
11
11
|
*/
|
|
12
|
-
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>):
|
|
12
|
+
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core6.Children;
|
|
13
13
|
type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
|
|
14
14
|
width?: number;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* Component that provides a context for rendering markdown tables.
|
|
18
18
|
*/
|
|
19
|
-
declare function MarkdownTableColumn(props: MarkdownTableColumnProps):
|
|
19
|
+
declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core6.Children;
|
|
20
20
|
/**
|
|
21
21
|
* Component that provides a context for rendering markdown tables.
|
|
22
22
|
*/
|
|
23
|
-
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps):
|
|
23
|
+
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core6.Children;
|
|
24
24
|
declare type __ΩMarkdownTableProps = any[];
|
|
25
25
|
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
26
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
2
|
import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-table.d.ts
|
|
6
6
|
interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
|
|
@@ -9,18 +9,18 @@ interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>
|
|
|
9
9
|
/**
|
|
10
10
|
* Component that provides a context for rendering markdown tables.
|
|
11
11
|
*/
|
|
12
|
-
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>):
|
|
12
|
+
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core0.Children;
|
|
13
13
|
type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
|
|
14
14
|
width?: number;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* Component that provides a context for rendering markdown tables.
|
|
18
18
|
*/
|
|
19
|
-
declare function MarkdownTableColumn(props: MarkdownTableColumnProps):
|
|
19
|
+
declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core0.Children;
|
|
20
20
|
/**
|
|
21
21
|
* Component that provides a context for rendering markdown tables.
|
|
22
22
|
*/
|
|
23
|
-
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps):
|
|
23
|
+
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core0.Children;
|
|
24
24
|
declare type __ΩMarkdownTableProps = any[];
|
|
25
25
|
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
26
|
//#endregion
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
3
|
+
|
|
4
|
+
//#region ../powerlines/src/lib/utilities/file-header.ts
|
|
5
|
+
function getBaseFileHeader(context) {
|
|
6
|
+
return `
|
|
7
|
+
// Generated with ${(0, __stryke_string_format_title_case.titleCase)(context.config.framework)}
|
|
8
|
+
// Note: Do not edit this file manually - it will be overwritten automatically
|
|
9
|
+
`;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.getBaseFileHeader = getBaseFileHeader;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
2
|
+
|
|
3
|
+
//#region ../powerlines/src/lib/utilities/file-header.ts
|
|
4
|
+
function getBaseFileHeader(context) {
|
|
5
|
+
return `
|
|
6
|
+
// Generated with ${titleCase(context.config.framework)}
|
|
7
|
+
// Note: Do not edit this file manually - it will be overwritten automatically
|
|
8
|
+
`;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { getBaseFileHeader };
|
|
@@ -9,6 +9,7 @@ import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
|
9
9
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
10
10
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
11
11
|
import { AssetGlob } from "@stryke/types/file";
|
|
12
|
+
import { DateString } from "compatx";
|
|
12
13
|
import { PreviewOptions } from "vite";
|
|
13
14
|
|
|
14
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
@@ -238,6 +239,17 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
238
239
|
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
239
240
|
*/
|
|
240
241
|
description?: string;
|
|
242
|
+
/**
|
|
243
|
+
* The date to use for compatibility checks
|
|
244
|
+
*
|
|
245
|
+
* @remarks
|
|
246
|
+
* This date can be used by plugins and build processes to determine compatibility with certain features or APIs. It is recommended to set this date to the date when the project was last known to be compatible with the desired features or APIs.
|
|
247
|
+
*
|
|
248
|
+
* @see https://developers.cloudflare.com/pages/platform/compatibility-dates/
|
|
249
|
+
* @see https://docs.netlify.com/configure-builds/get-started/#set-a-compatibility-date
|
|
250
|
+
* @see https://github.com/unjs/compatx
|
|
251
|
+
*/
|
|
252
|
+
compatibilityDate?: DateString;
|
|
241
253
|
/**
|
|
242
254
|
* The log level to use for the Powerlines processes.
|
|
243
255
|
*
|
|
@@ -10,6 +10,7 @@ import { Format } from "@storm-software/build-tools/types";
|
|
|
10
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
11
11
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
12
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
13
|
+
import { DateString } from "compatx";
|
|
13
14
|
import { PreviewOptions } from "vite";
|
|
14
15
|
|
|
15
16
|
//#region ../powerlines/src/types/config.d.ts
|
|
@@ -238,6 +239,17 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
238
239
|
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
239
240
|
*/
|
|
240
241
|
description?: string;
|
|
242
|
+
/**
|
|
243
|
+
* The date to use for compatibility checks
|
|
244
|
+
*
|
|
245
|
+
* @remarks
|
|
246
|
+
* This date can be used by plugins and build processes to determine compatibility with certain features or APIs. It is recommended to set this date to the date when the project was last known to be compatible with the desired features or APIs.
|
|
247
|
+
*
|
|
248
|
+
* @see https://developers.cloudflare.com/pages/platform/compatibility-dates/
|
|
249
|
+
* @see https://docs.netlify.com/configure-builds/get-started/#set-a-compatibility-date
|
|
250
|
+
* @see https://github.com/unjs/compatx
|
|
251
|
+
*/
|
|
252
|
+
compatibilityDate?: DateString;
|
|
241
253
|
/**
|
|
242
254
|
* The log level to use for the Powerlines processes.
|
|
243
255
|
*
|
|
@@ -32,7 +32,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
32
32
|
/**
|
|
33
33
|
* The resolved options for the Powerlines project configuration.
|
|
34
34
|
*/
|
|
35
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
35
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
36
36
|
/**
|
|
37
37
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
38
38
|
*/
|
|
@@ -32,7 +32,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
32
32
|
/**
|
|
33
33
|
* The resolved options for the Powerlines project configuration.
|
|
34
34
|
*/
|
|
35
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
35
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
36
36
|
/**
|
|
37
37
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
38
38
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TSDocModuleProps } from "./tsdoc.cjs";
|
|
2
2
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
6
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
|
|
|
28
28
|
* @param props - The properties for the source file.
|
|
29
29
|
* @returns The rendered source file component.
|
|
30
30
|
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps):
|
|
31
|
+
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core14.Children;
|
|
32
32
|
declare type __ΩBuiltinFileProps = any[];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TSDocModuleProps } from "./tsdoc.mjs";
|
|
2
2
|
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core16 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
6
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
|
|
|
28
28
|
* @param props - The properties for the source file.
|
|
29
29
|
* @returns The rendered source file component.
|
|
30
30
|
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps):
|
|
31
|
+
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core16.Children;
|
|
32
32
|
declare type __ΩBuiltinFileProps = any[];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
2
2
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
|
|
|
26
26
|
* @param props - The properties for the dynamic import statement.
|
|
27
27
|
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
28
|
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps):
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core12.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
2
2
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
|
|
|
26
26
|
* @param props - The properties for the dynamic import statement.
|
|
27
27
|
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
28
|
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps):
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core14.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.cjs";
|
|
2
2
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core13 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/entry-file.d.ts
|
|
6
6
|
type EntryFileProps = TypescriptFileProps & {
|
|
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
|
|
|
21
21
|
* @param props - The properties for the source file.
|
|
22
22
|
* @returns The rendered source file component.
|
|
23
23
|
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps):
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core13.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.mjs";
|
|
2
2
|
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core15 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/entry-file.d.ts
|
|
6
6
|
type EntryFileProps = TypescriptFileProps & {
|
|
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
|
|
|
21
21
|
* @param props - The properties for the source file.
|
|
22
22
|
* @returns The rendered source file component.
|
|
23
23
|
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps):
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core15.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
3
2
|
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
3
|
+
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
4
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
6
|
let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
7
|
+
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
7
8
|
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
8
9
|
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
9
|
-
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
10
10
|
|
|
11
11
|
//#region src/typescript/components/tsdoc-reflection.tsx
|
|
12
12
|
/**
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { TSDocProps } from "./tsdoc.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core9 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/tsdoc-reflection.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Generates a TypeScript interface property for the given reflection class.
|
|
7
7
|
*/
|
|
8
|
-
declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps):
|
|
8
|
+
declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core9.Children;
|
|
9
9
|
/**
|
|
10
10
|
* Generates a TypeScript interface property for the given reflection class.
|
|
11
11
|
*/
|
|
12
|
-
declare function TSDocReflectionProperty(props: TSDocProps):
|
|
12
|
+
declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core9.Children;
|
|
13
13
|
/**
|
|
14
14
|
* Generates a TypeScript interface property for the given reflection class.
|
|
15
15
|
*/
|
|
16
|
-
declare function TSDocReflectionMethod(props: TSDocProps):
|
|
16
|
+
declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core9.Children;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { TSDocProps } from "./tsdoc.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core11 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/tsdoc-reflection.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Generates a TypeScript interface property for the given reflection class.
|
|
7
7
|
*/
|
|
8
|
-
declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps):
|
|
8
|
+
declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core11.Children;
|
|
9
9
|
/**
|
|
10
10
|
* Generates a TypeScript interface property for the given reflection class.
|
|
11
11
|
*/
|
|
12
|
-
declare function TSDocReflectionProperty(props: TSDocProps):
|
|
12
|
+
declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core11.Children;
|
|
13
13
|
/**
|
|
14
14
|
* Generates a TypeScript interface property for the given reflection class.
|
|
15
15
|
*/
|
|
16
|
-
declare function TSDocReflectionMethod(props: TSDocProps):
|
|
16
|
+
declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core11.Children;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TSDoc, TSDocAttributesTags } from "./tsdoc.mjs";
|
|
2
1
|
import { useReflectionClass, useReflectionMethod, useReflectionProperty } from "../../core/contexts/reflection.mjs";
|
|
2
|
+
import { TSDoc, TSDocAttributesTags } from "./tsdoc.mjs";
|
|
3
3
|
import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { List, Show, childrenArray, code, computed, splitProps } from "@alloy-js/core";
|
|
5
5
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
6
|
+
import { isString } from "@stryke/type-checks/is-string";
|
|
6
7
|
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
7
8
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
8
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
9
9
|
|
|
10
10
|
//#region src/typescript/components/tsdoc-reflection.tsx
|
|
11
11
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
|
+
const require_utilities = require('../../deepkit/src/utilities.cjs');
|
|
3
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
5
|
-
let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
|
|
6
6
|
let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
7
7
|
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
8
8
|
|
|
@@ -157,7 +157,7 @@ function TSDocDefaultValue(props) {
|
|
|
157
157
|
width: 2,
|
|
158
158
|
get children() {
|
|
159
159
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { get children() {
|
|
160
|
-
return
|
|
160
|
+
return require_utilities.stringifyDefaultValue(props.value);
|
|
161
161
|
} });
|
|
162
162
|
}
|
|
163
163
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { usePowerlines } from "../../core/contexts/context.mjs";
|
|
2
|
+
import { stringifyDefaultValue } from "../../deepkit/src/utilities.mjs";
|
|
2
3
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
4
|
import { For, List, Prose, Show, childrenArray, splitProps } from "@alloy-js/core";
|
|
4
|
-
import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
|
|
5
5
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
6
6
|
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
7
7
|
|
|
@@ -4,11 +4,11 @@ const require_core_components_single_line_comment = require('../../core/componen
|
|
|
4
4
|
const require_core_components_source_file = require('../../core/components/source-file.cjs');
|
|
5
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let __alloy_js_core = require("@alloy-js/core");
|
|
7
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
8
7
|
let __stryke_path_append = require("@stryke/path/append");
|
|
8
|
+
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
9
9
|
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
10
|
+
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
10
11
|
let __stryke_type_checks_is_boolean = require("@stryke/type-checks/is-boolean");
|
|
11
|
-
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
12
12
|
|
|
13
13
|
//#region src/typescript/components/typescript-file.tsx
|
|
14
14
|
/**
|
|
@@ -3,11 +3,11 @@ import { SingleLineComment } from "../../core/components/single-line-comment.mjs
|
|
|
3
3
|
import { SourceFile } from "../../core/components/source-file.mjs";
|
|
4
4
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
5
|
import { Scope, Show, SourceDirectoryContext, code, splitProps, useContext, useScope } from "@alloy-js/core";
|
|
6
|
-
import { ImportStatements, PackageContext, SourceFileContext as SourceFileContext$1, TSModuleScope, getSourceDirectoryData, useSourceFile } from "@alloy-js/typescript";
|
|
7
6
|
import { appendPath } from "@stryke/path/append";
|
|
7
|
+
import { isString } from "@stryke/type-checks/is-string";
|
|
8
8
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
9
|
+
import { ImportStatements, PackageContext, SourceFileContext as SourceFileContext$1, TSModuleScope, getSourceDirectoryData, useSourceFile } from "@alloy-js/typescript";
|
|
9
10
|
import { isBoolean } from "@stryke/type-checks/is-boolean";
|
|
10
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
11
11
|
|
|
12
12
|
//#region src/typescript/components/typescript-file.tsx
|
|
13
13
|
/**
|
|
@@ -3,10 +3,9 @@ const require_core_contexts_reflection = require('../../core/contexts/reflection
|
|
|
3
3
|
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
4
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
7
6
|
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
8
|
-
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
9
7
|
let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
|
|
8
|
+
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
10
9
|
|
|
11
10
|
//#region src/typescript/components/typescript-interface.tsx
|
|
12
11
|
/**
|
|
@@ -57,7 +56,7 @@ function TypescriptInterfaceProperty(props) {
|
|
|
57
56
|
return property.isNullable();
|
|
58
57
|
},
|
|
59
58
|
get type() {
|
|
60
|
-
return
|
|
59
|
+
return stringifyType(property.getType());
|
|
61
60
|
}
|
|
62
61
|
}, rest))];
|
|
63
62
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import { type_d_exports } from "../../deepkit/src/vendor/type.cjs";
|
|
3
2
|
import * as _alloy_js_core15 from "@alloy-js/core";
|
|
4
3
|
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
5
4
|
|
|
6
5
|
//#region src/typescript/components/typescript-interface.d.ts
|
|
7
6
|
interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
|
|
8
|
-
reflection:
|
|
7
|
+
reflection: ReflectionClass<T>;
|
|
9
8
|
defaultValue?: Partial<T>;
|
|
10
9
|
}
|
|
11
10
|
interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
|
|
12
|
-
property:
|
|
11
|
+
property: ReflectionProperty;
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
14
|
* Generates a TypeScript interface for the given reflection class.
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import
|
|
3
|
-
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
2
|
+
import * as _alloy_js_core9 from "@alloy-js/core";
|
|
4
3
|
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
5
4
|
|
|
6
5
|
//#region src/typescript/components/typescript-interface.d.ts
|
|
7
6
|
interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
|
|
8
|
-
reflection:
|
|
7
|
+
reflection: ReflectionClass<T>;
|
|
9
8
|
defaultValue?: Partial<T>;
|
|
10
9
|
}
|
|
11
10
|
interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
|
|
12
|
-
property:
|
|
11
|
+
property: ReflectionProperty;
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
14
|
* Generates a TypeScript interface for the given reflection class.
|
|
16
15
|
*/
|
|
17
|
-
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>):
|
|
16
|
+
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core9.Children;
|
|
18
17
|
/**
|
|
19
18
|
* Generates a TypeScript interface property for the given reflection class.
|
|
20
19
|
*/
|
|
21
|
-
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps):
|
|
20
|
+
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core9.Children;
|
|
22
21
|
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
22
|
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
23
|
//#endregion
|
|
@@ -2,10 +2,9 @@ import { ReflectionClassContext, ReflectionPropertyContext } from "../../core/co
|
|
|
2
2
|
import { TSDocReflectionClass, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
3
3
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { For, computed, splitProps } from "@alloy-js/core";
|
|
5
|
-
import { InterfaceDeclaration, InterfaceMember } from "@alloy-js/typescript";
|
|
6
5
|
import { isString } from "@stryke/type-checks/is-string";
|
|
7
|
-
import { stringifyType } from "@powerlines/deepkit/vendor/type";
|
|
8
6
|
import { pascalCase } from "@stryke/string-format/pascal-case";
|
|
7
|
+
import { InterfaceDeclaration, InterfaceMember } from "@alloy-js/typescript";
|
|
9
8
|
|
|
10
9
|
//#region src/typescript/components/typescript-interface.tsx
|
|
11
10
|
/**
|