@alloy-js/typescript 0.3.0 → 0.5.0
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/CHANGELOG.md +12 -0
- package/dist/src/components/ArrayExpression.d.ts +1 -1
- package/dist/src/components/ArrayExpression.d.ts.map +1 -1
- package/dist/src/components/BarrelFile.d.ts +1 -1
- package/dist/src/components/BarrelFile.d.ts.map +1 -1
- package/dist/src/components/Block.d.ts +1 -1
- package/dist/src/components/Block.d.ts.map +1 -1
- package/dist/src/components/ClassDeclaration.d.ts +4 -4
- package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
- package/dist/src/components/Declaration.d.ts +1 -1
- package/dist/src/components/Declaration.d.ts.map +1 -1
- package/dist/src/components/EnumDeclaration.d.ts +1 -1
- package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
- package/dist/src/components/EnumMember.d.ts +1 -1
- package/dist/src/components/EnumMember.d.ts.map +1 -1
- package/dist/src/components/ExportStatement.d.ts +1 -1
- package/dist/src/components/ExportStatement.d.ts.map +1 -1
- package/dist/src/components/FunctionCallExpression.d.ts +1 -1
- package/dist/src/components/FunctionCallExpression.d.ts.map +1 -1
- package/dist/src/components/FunctionDeclaration.d.ts +1 -1
- package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
- package/dist/src/components/ImportStatement.d.ts +1 -1
- package/dist/src/components/ImportStatement.d.ts.map +1 -1
- package/dist/src/components/Interface.d.ts +2 -2
- package/dist/src/components/Interface.d.ts.map +1 -1
- package/dist/src/components/ObjectExpression.d.ts +2 -2
- package/dist/src/components/ObjectExpression.d.ts.map +1 -1
- package/dist/src/components/PackageDirectory.d.ts +1 -1
- package/dist/src/components/PackageDirectory.d.ts.map +1 -1
- package/dist/src/components/PackageDirectory.js +2 -2
- package/dist/src/components/PackageDirectory.js.map +1 -1
- package/dist/src/components/PackageJson.d.ts +1 -1
- package/dist/src/components/PackageJson.d.ts.map +1 -1
- package/dist/src/components/Reference.d.ts +1 -1
- package/dist/src/components/Reference.d.ts.map +1 -1
- package/dist/src/components/SourceFile.d.ts +1 -1
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js +2 -2
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/components/TsConfigJson.d.ts +1 -1
- package/dist/src/components/TsConfigJson.d.ts.map +1 -1
- package/dist/src/components/TypeDeclaration.d.ts +1 -1
- package/dist/src/components/TypeDeclaration.d.ts.map +1 -1
- package/dist/src/components/ValueExpression.d.ts +2 -1
- package/dist/src/components/ValueExpression.d.ts.map +1 -1
- package/dist/src/components/ValueExpression.js +3 -1
- package/dist/src/components/ValueExpression.js.map +1 -1
- package/dist/src/components/VarDeclaration.d.ts +1 -1
- package/dist/src/components/VarDeclaration.d.ts.map +1 -1
- package/dist/src/components/stc/index.d.ts +20 -8
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js +5 -2
- package/dist/src/components/stc/index.js.map +1 -1
- package/dist/src/name-policy.d.ts.map +1 -1
- package/dist/src/name-policy.js +31 -2
- package/dist/src/name-policy.js.map +1 -1
- package/dist/test/value-expression.test.d.ts +2 -0
- package/dist/test/value-expression.test.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -7
- package/src/components/PackageDirectory.tsx +3 -2
- package/src/components/SourceFile.tsx +2 -2
- package/src/components/ValueExpression.tsx +7 -5
- package/src/components/stc/index.ts +5 -2
- package/src/name-policy.ts +99 -2
- package/temp/api.json +126 -52
- package/test/enum.test.tsx +2 -2
- package/test/name-policy.test.tsx +28 -0
- package/test/package-external.test.tsx +1 -0
- package/test/value-expression.test.tsx +39 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog - @alloy-js/typescript
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
No changes, version bump only.
|
|
6
|
+
|
|
7
|
+
## 0.4.0
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- [#45](https://github.com/alloy-framework/alloy/pull/45) Update TypeScript name policy to handle reserved words and properly case
|
|
12
|
+
enum members.
|
|
13
|
+
|
|
14
|
+
|
|
3
15
|
## 0.3.0
|
|
4
16
|
|
|
5
17
|
No changes, version bump only.
|
|
@@ -3,5 +3,5 @@ export interface ArrayExpressionProps {
|
|
|
3
3
|
children?: Children;
|
|
4
4
|
jsValue?: unknown[];
|
|
5
5
|
}
|
|
6
|
-
export declare function ArrayExpression(props: ArrayExpressionProps): () =>
|
|
6
|
+
export declare function ArrayExpression(props: ArrayExpressionProps): () => Children[] | "[]";
|
|
7
7
|
//# sourceMappingURL=ArrayExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayExpression.d.ts","sourceRoot":"","sources":["../../../src/components/ArrayExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,gBAAgB,CAAC;AAG3E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ArrayExpression.d.ts","sourceRoot":"","sources":["../../../src/components/ArrayExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,gBAAgB,CAAC;AAG3E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2BAgC1D"}
|
|
@@ -45,5 +45,5 @@ export interface BarrelFileProps {
|
|
|
45
45
|
* @see {@link @alloy-js/core#SourceDirectory}
|
|
46
46
|
* @see {@link SourceFile}
|
|
47
47
|
*/
|
|
48
|
-
export declare function BarrelFile(props: BarrelFileProps):
|
|
48
|
+
export declare function BarrelFile(props: BarrelFileProps): import("@alloy-js/core").Children;
|
|
49
49
|
//# sourceMappingURL=BarrelFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarrelFile.d.ts","sourceRoot":"","sources":["../../../src/components/BarrelFile.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"BarrelFile.d.ts","sourceRoot":"","sources":["../../../src/components/BarrelFile.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qCAkChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../src/components/Block.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AACD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../src/components/Block.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AACD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,YAMtC"}
|
|
@@ -37,7 +37,7 @@ export interface ClassDeclarationProps extends BaseDeclarationProps {
|
|
|
37
37
|
* {member(myPetRefkey, instanceMember)} // other option?
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
export declare function ClassDeclaration(props: ClassDeclarationProps):
|
|
40
|
+
export declare function ClassDeclaration(props: ClassDeclarationProps): Children;
|
|
41
41
|
export interface ClassMemberProps {
|
|
42
42
|
name: string;
|
|
43
43
|
refkey?: Refkey;
|
|
@@ -48,17 +48,17 @@ export interface ClassMemberProps {
|
|
|
48
48
|
static?: boolean;
|
|
49
49
|
children?: Children;
|
|
50
50
|
}
|
|
51
|
-
export declare function ClassMember(props: ClassMemberProps):
|
|
51
|
+
export declare function ClassMember(props: ClassMemberProps): Children;
|
|
52
52
|
export interface ClassFieldProps extends ClassMemberProps {
|
|
53
53
|
type?: Children;
|
|
54
54
|
children?: Children;
|
|
55
55
|
}
|
|
56
|
-
export declare function ClassField(props: ClassFieldProps):
|
|
56
|
+
export declare function ClassField(props: ClassFieldProps): Children;
|
|
57
57
|
export interface ClassMethodProps extends ClassMemberProps {
|
|
58
58
|
async?: boolean;
|
|
59
59
|
parameters?: Record<string, Children | ParameterDescriptor>;
|
|
60
60
|
returnType?: Children;
|
|
61
61
|
children?: Children;
|
|
62
62
|
}
|
|
63
|
-
export declare function ClassMethod(props: ClassMethodProps):
|
|
63
|
+
export declare function ClassMethod(props: ClassMethodProps): Children;
|
|
64
64
|
//# sourceMappingURL=ClassDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/ClassDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAKR,MAAM,EAEP,MAAM,g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,QAAQ,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAOhD;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,mBAAmB,CAAC,CAAC;IAC5D,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,YAWlD"}
|
|
@@ -49,5 +49,5 @@ export interface DeclarationProps extends BaseDeclarationProps {
|
|
|
49
49
|
* component will create a {@link @alloy-js/core#MemberScope}.
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
|
-
export declare function Declaration(props: DeclarationProps):
|
|
52
|
+
export declare function Declaration(props: DeclarationProps): Children;
|
|
53
53
|
//# sourceMappingURL=Declaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Declaration.d.ts","sourceRoot":"","sources":["../../../src/components/Declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAGR,iBAAiB,EAEjB,MAAM,EACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAmB,MAAM,mBAAmB,CAAC;AAWxE,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAE1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Declaration.d.ts","sourceRoot":"","sources":["../../../src/components/Declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAGR,iBAAiB,EAEjB,MAAM,EACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAmB,MAAM,mBAAmB,CAAC;AAWxE,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAE1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,YA4BlD"}
|
|
@@ -8,5 +8,5 @@ export interface EnumDeclarationProps extends BaseDeclarationProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* A TypeScript enum declaration.
|
|
10
10
|
*/
|
|
11
|
-
export declare function EnumDeclaration(props: EnumDeclarationProps):
|
|
11
|
+
export declare function EnumDeclaration(props: EnumDeclarationProps): import("@alloy-js/core").Children;
|
|
12
12
|
//# sourceMappingURL=EnumDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/EnumDeclaration.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CAC3C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"EnumDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/EnumDeclaration.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CAC3C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qCA6B1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumMember.d.ts","sourceRoot":"","sources":["../../../src/components/EnumMember.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAqB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAKrE,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"EnumMember.d.ts","sourceRoot":"","sources":["../../../src/components/EnumMember.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAqB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAKrE,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAiBhD"}
|
|
@@ -3,5 +3,5 @@ export interface ExportStatementProps {
|
|
|
3
3
|
star?: boolean;
|
|
4
4
|
from?: TSModuleScope;
|
|
5
5
|
}
|
|
6
|
-
export declare function ExportStatement(props: ExportStatementProps):
|
|
6
|
+
export declare function ExportStatement(props: ExportStatementProps): import("@alloy-js/core").Children;
|
|
7
7
|
//# sourceMappingURL=ExportStatement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportStatement.d.ts","sourceRoot":"","sources":["../../../src/components/ExportStatement.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAkB,MAAM,qBAAqB,CAAC;AAIpE,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExportStatement.d.ts","sourceRoot":"","sources":["../../../src/components/ExportStatement.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAkB,MAAM,qBAAqB,CAAC;AAIpE,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qCAU1D"}
|
|
@@ -3,5 +3,5 @@ export interface FunctionCallExpressionProps {
|
|
|
3
3
|
refkey: Refkey;
|
|
4
4
|
args?: Children[];
|
|
5
5
|
}
|
|
6
|
-
export declare function FunctionCallExpression(props: FunctionCallExpressionProps):
|
|
6
|
+
export declare function FunctionCallExpression(props: FunctionCallExpressionProps): Children;
|
|
7
7
|
//# sourceMappingURL=FunctionCallExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionCallExpression.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionCallExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAW,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;CACnB;AACD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"FunctionCallExpression.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionCallExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAW,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;CACnB;AACD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,YAOxE"}
|
|
@@ -14,7 +14,7 @@ export interface FunctionDeclarationProps extends BaseDeclarationProps {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const functionParametersTag: unique symbol;
|
|
16
16
|
export declare const functionBodyTag: unique symbol;
|
|
17
|
-
export declare function FunctionDeclaration(props: FunctionDeclarationProps):
|
|
17
|
+
export declare function FunctionDeclaration(props: FunctionDeclarationProps): Children;
|
|
18
18
|
export declare namespace FunctionDeclaration {
|
|
19
19
|
var Parameters: import("@alloy-js/core").Component<FunctionParametersProps>;
|
|
20
20
|
var Body: import("@alloy-js/core").Component<FunctionBodyProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,MAAM,EAIP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAGtD,OAAO,EAAE,oBAAoB,EAAe,MAAM,kBAAkB,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AASD,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB;IACpE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,mBAAmB,CAAC,CAAC;IAC5D,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,eAAW,CAAC;AAC9C,eAAO,MAAM,eAAe,eAAW,CAAC;AAExC,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"FunctionDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,MAAM,EAIP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAGtD,OAAO,EAAE,oBAAoB,EAAe,MAAM,kBAAkB,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AASD,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB;IACpE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,mBAAmB,CAAC,CAAC;IAC5D,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,eAAW,CAAC;AAC9C,eAAO,MAAM,eAAe,eAAW,CAAC;AAExC,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,YAuBlE;yBAvBe,mBAAmB;;;;AAiCnC,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,mBAAmB,CAAC,CAAC;IAC5D,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AA+CD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
|
|
@@ -2,7 +2,7 @@ import { ImportedSymbol, ImportRecords } from "../symbols/index.js";
|
|
|
2
2
|
export interface ImportStatementsProps {
|
|
3
3
|
records: ImportRecords;
|
|
4
4
|
}
|
|
5
|
-
export declare function ImportStatements(props: ImportStatementsProps): () =>
|
|
5
|
+
export declare function ImportStatements(props: ImportStatementsProps): () => import("@alloy-js/core").Children[];
|
|
6
6
|
export interface ImportStatementProps {
|
|
7
7
|
path: string;
|
|
8
8
|
symbols: Set<ImportedSymbol>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportStatement.d.ts","sourceRoot":"","sources":["../../../src/components/ImportStatement.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,cAAc,EACd,aAAa,EAEd,MAAM,qBAAqB,CAAC;AAI7B,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ImportStatement.d.ts","sourceRoot":"","sources":["../../../src/components/ImportStatement.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,cAAc,EACd,aAAa,EAEd,MAAM,qBAAqB,CAAC;AAI7B,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,6CA6C5D;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAsC1D"}
|
|
@@ -12,7 +12,7 @@ export interface InterfaceDeclarationProps extends BaseDeclarationProps {
|
|
|
12
12
|
* `default` boolean props determine whether and how this symbol is exported
|
|
13
13
|
* from the package.
|
|
14
14
|
*/
|
|
15
|
-
export declare function InterfaceDeclaration(props: InterfaceDeclarationProps):
|
|
15
|
+
export declare function InterfaceDeclaration(props: InterfaceDeclarationProps): Children;
|
|
16
16
|
export interface InterfaceExpressionProps {
|
|
17
17
|
children?: Children;
|
|
18
18
|
}
|
|
@@ -28,5 +28,5 @@ export interface InterfaceMemberProps {
|
|
|
28
28
|
/**
|
|
29
29
|
* Create a TypeScript interface declaration.
|
|
30
30
|
*/
|
|
31
|
-
export declare function InterfaceMember(props: InterfaceMemberProps):
|
|
31
|
+
export declare function InterfaceMember(props: InterfaceMemberProps): Children;
|
|
32
32
|
//# sourceMappingURL=Interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interface.d.ts","sourceRoot":"","sources":["../../../src/components/Interface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAe,MAAM,kBAAkB,CAAC;AAErE,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"Interface.d.ts","sourceRoot":"","sources":["../../../src/components/Interface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAe,MAAM,kBAAkB,CAAC;AAErE,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,YAQpE;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,oCAMlE;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,YAU1D"}
|
|
@@ -3,7 +3,7 @@ export interface ObjectExpressionProps {
|
|
|
3
3
|
children?: Children;
|
|
4
4
|
jsValue?: [string, unknown][] | Map<string, unknown> | Record<string, unknown>;
|
|
5
5
|
}
|
|
6
|
-
export declare function ObjectExpression(props: ObjectExpressionProps): () =>
|
|
6
|
+
export declare function ObjectExpression(props: ObjectExpressionProps): () => Children;
|
|
7
7
|
export interface ObjectPropertyProps {
|
|
8
8
|
name?: string;
|
|
9
9
|
nameExpression?: Children;
|
|
@@ -12,5 +12,5 @@ export interface ObjectPropertyProps {
|
|
|
12
12
|
children?: Children;
|
|
13
13
|
refkey?: Refkey;
|
|
14
14
|
}
|
|
15
|
-
export declare function ObjectProperty(props: ObjectPropertyProps):
|
|
15
|
+
export declare function ObjectProperty(props: ObjectPropertyProps): Children;
|
|
16
16
|
//# sourceMappingURL=ObjectExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectExpression.d.ts","sourceRoot":"","sources":["../../../src/components/ObjectExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQR,MAAM,EACP,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EACJ,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GACnB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GACpB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ObjectExpression.d.ts","sourceRoot":"","sources":["../../../src/components/ObjectExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQR,MAAM,EACP,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EACJ,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GACnB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GACpB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,kBA0D5D;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,YAqCxD"}
|
|
@@ -19,5 +19,5 @@ export interface PackageContext {
|
|
|
19
19
|
*/
|
|
20
20
|
outFileMapper: Ref<(path: string) => string>;
|
|
21
21
|
}
|
|
22
|
-
export declare function PackageDirectory(props: PackageDirectoryProps):
|
|
22
|
+
export declare function PackageDirectory(props: PackageDirectoryProps): Children;
|
|
23
23
|
//# sourceMappingURL=PackageDirectory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageDirectory.d.ts","sourceRoot":"","sources":["../../../src/components/PackageDirectory.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAEhB,GAAG,EAQJ,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAwB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EACL,UAAU,EACV,cAAc,EAEd,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;IACtC,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"PackageDirectory.d.ts","sourceRoot":"","sources":["../../../src/components/PackageDirectory.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAEhB,GAAG,EAQJ,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAwB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EACL,UAAU,EACV,cAAc,EAEd,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;IACtC,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAAC,cAAc,CACC,CAAC;AAE9D,wBAAgB,UAAU,+BAGzB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CAC9C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,YAgC5D"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
2
|
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { createNamedContext, Scope, shallowRef, SourceDirectory, SourceDirectoryContext, useBinder, useContext, useScope } from "@alloy-js/core";
|
|
5
5
|
import { join } from "pathe";
|
|
6
6
|
import { createTSPackageScope } from "../symbols/index.js";
|
|
7
7
|
import { modulePath } from "../utils.js";
|
|
8
8
|
import { PackageJsonFile } from "./PackageJson.js";
|
|
9
9
|
import { TSConfigJson } from "./TsConfigJson.js";
|
|
10
|
-
export const PackageContext =
|
|
10
|
+
export const PackageContext = createNamedContext("@alloy-js/typescript PackageDirectory");
|
|
11
11
|
export function usePackage() {
|
|
12
12
|
const ctx = useContext(PackageContext);
|
|
13
13
|
return ctx;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageDirectory.js","names":["
|
|
1
|
+
{"version":3,"file":"PackageDirectory.js","names":["createNamedContext","Scope","shallowRef","SourceDirectory","SourceDirectoryContext","useBinder","useContext","useScope","join","createTSPackageScope","modulePath","PackageJsonFile","TSConfigJson","PackageContext","usePackage","ctx","PackageDirectory","props","packageContext","createPackageContext","name","version","path","exports","scope","addRawExport","ex","Object","entries","dependencies","dep","addRawDependency","_$createComponent","children","Provider","value","_$mergeProps","tsConfig","_$memo","parentDir","fullPath","outFileMapper"],"sources":["../../../src/components/PackageDirectory.tsx"],"sourcesContent":[null],"mappings":";;;AAAA,SAGEA,kBAAkB,EAElBC,KAAK,EACLC,UAAU,EACVC,eAAe,EACfC,sBAAsB,EACtBC,SAAS,EACTC,UAAU,EACVC,QAAQ,QACH,gBAAgB;AACvB,SAASC,IAAI,QAAQ,OAAO;AAC5B,SAASC,oBAAoB,QAAwB,qBAAqB;AAC1E,SAASC,UAAU,QAAQ,aAAa;AACxC,SAGEC,eAAe,QAEV,kBAAkB;AACzB,SAASC,YAAY,QAAQ,mBAAmB;AAUhD,OAAO,MAAMC,cAAgD,GAC3Db,kBAAkB,CAAC,uCAAuC,CAAC;AAE7D,OAAO,SAASc,UAAUA,CAAA,EAAG;EAC3B,MAAMC,GAAG,GAAGT,UAAU,CAACO,cAAc,CAAC;EACtC,OAAOE,GAAG;AACZ;AAWA,OAAO,SAASC,gBAAgBA,CAACC,KAA4B,EAAE;EAC7D,MAAMC,cAAc,GAAGC,oBAAoB,CACzCF,KAAK,CAACG,IAAI,EACVH,KAAK,CAACI,OAAO,EACbJ,KAAK,CAACK,IAAI,IAAI,GAChB,CAAC;EAED,IAAIL,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C,IAAY,EACI;EAChB,MAAMiB,SAAS,GAAGjC,UAAU,CAACF,sBAAsB,CAAC;EACpD;EACA,MAAMoC,QAAQ,GAAGD,SAAS,GAAG/B,IAAI,CAAC+B,SAAS,CAACjB,IAAI,EAAEA,IAAI,CAAC,GAAGA,IAAI;EAE9D,MAAME,KAAK,GAAGf,oBAAoB,CAChCJ,SAAS,CAAC,CAAC,EACXE,QAAQ,CAAC,CAAC,EACVa,IAAI,EACJC,OAAO,EACPmB,QACF,CAAC;EAED,OAAO;IACLhB,KAAK;IACLiB,aAAa,EAAEvC,UAAU,CAAEoB,IAAY,IAAKZ,UAAU,CAACY,IAAI,CAAC;EAC9D,CAAC;AACH","ignoreList":[]}
|
|
@@ -12,5 +12,5 @@ export type ExportPath = string | ExportConditions;
|
|
|
12
12
|
export interface PackageExports {
|
|
13
13
|
[key: string]: ExportPath;
|
|
14
14
|
}
|
|
15
|
-
export declare function PackageJsonFile(props: PackageJsonFileProps):
|
|
15
|
+
export declare function PackageJsonFile(props: PackageJsonFileProps): import("@alloy-js/core").Children;
|
|
16
16
|
//# sourceMappingURL=PackageJson.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageJson.d.ts","sourceRoot":"","sources":["../../../src/components/PackageJson.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;CAChD;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"PackageJson.d.ts","sourceRoot":"","sources":["../../../src/components/PackageJson.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;CAChD;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qCA8C1D"}
|
|
@@ -2,5 +2,5 @@ import { Refkey } from "@alloy-js/core";
|
|
|
2
2
|
export interface ReferenceProps {
|
|
3
3
|
refkey: Refkey;
|
|
4
4
|
}
|
|
5
|
-
export declare function Reference({ refkey }: ReferenceProps):
|
|
5
|
+
export declare function Reference({ refkey }: ReferenceProps): import("@alloy-js/core").Children;
|
|
6
6
|
//# sourceMappingURL=Reference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../../src/components/Reference.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../../src/components/Reference.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,qCAInD"}
|
|
@@ -11,5 +11,5 @@ export interface SourceFileProps {
|
|
|
11
11
|
children?: Children;
|
|
12
12
|
export?: boolean | string;
|
|
13
13
|
}
|
|
14
|
-
export declare function SourceFile(props: SourceFileProps):
|
|
14
|
+
export declare function SourceFile(props: SourceFileProps): Children;
|
|
15
15
|
//# sourceMappingURL=SourceFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAQjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAGtD,OAAO,EAAuB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAQjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAGtD,OAAO,EAAuB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,iBAAiB,CACX,CAAC;AAExD,wBAAgB,aAAa,sBAE5B;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAoChD"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
2
|
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { SourceFile as CoreSourceFile,
|
|
3
|
+
import { SourceFile as CoreSourceFile, createNamedContext, Scope, SourceDirectoryContext, useBinder, useContext, useScope } from "@alloy-js/core";
|
|
4
4
|
import { join } from "pathe";
|
|
5
5
|
import { getSourceDirectoryData } from "../source-directory-data.js";
|
|
6
6
|
import { createTSModuleScope } from "../symbols/index.js";
|
|
7
7
|
import { ImportStatements } from "./ImportStatement.js";
|
|
8
8
|
import { PackageContext } from "./PackageDirectory.js";
|
|
9
9
|
import { Reference } from "./Reference.js";
|
|
10
|
-
export const SourceFileContext =
|
|
10
|
+
export const SourceFileContext = createNamedContext("@alloy-js/typescript SourceFile");
|
|
11
11
|
export function useSourceFile() {
|
|
12
12
|
return useContext(SourceFileContext);
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceFile.js","names":["SourceFile","CoreSourceFile","
|
|
1
|
+
{"version":3,"file":"SourceFile.js","names":["SourceFile","CoreSourceFile","createNamedContext","Scope","SourceDirectoryContext","useBinder","useContext","useScope","join","getSourceDirectoryData","createTSModuleScope","ImportStatements","PackageContext","Reference","SourceFileContext","useSourceFile","props","directoryContext","sdData","currentDir","path","scope","modules","add","pkg","addModule","sfContext","export","addExport","_$createComponent","filetype","reference","children","_$memo","importedModules","size","records","undefined","Provider","value"],"sources":["../../../src/components/SourceFile.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SAEEA,UAAU,IAAIC,cAAc,EAC5BC,kBAAkB,EAClBC,KAAK,EACLC,sBAAsB,EACtBC,SAAS,EACTC,UAAU,EACVC,QAAQ,QACH,gBAAgB;AAGvB,SAASC,IAAI,QAAQ,OAAO;AAC5B,SAASC,sBAAsB,QAAQ,6BAA6B;AACpE,SAASC,mBAAmB,QAAuB,qBAAqB;AACxE,SAASC,gBAAgB,QAAQ,sBAAsB;AACvD,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,SAAS,QAAQ,gBAAgB;AAK1C,OAAO,MAAMC,iBAAsD,GACjEZ,kBAAkB,CAAC,iCAAiC,CAAC;AAEvD,OAAO,SAASa,aAAaA,CAAA,EAAG;EAC9B,OAAOT,UAAU,CAACQ,iBAAiB,CAAC;AACtC;AAOA,OAAO,SAASd,UAAUA,CAACgB,KAAsB,EAAE;EACjD,MAAMC,gBAAgB,GAAGX,UAAU,CAACF,sBAAsB,CAAE;EAC5D,MAAMc,MAAM,GAAGT,sBAAsB,CAACQ,gBAAgB,CAAC;EACvD,MAAME,UAAU,GAAGF,gBAAgB,CAACG,IAAI;EACxC,MAAMA,IAAY,GAAGZ,IAAI,CAACW,UAAU,EAAEH,KAAK,CAACI,IAAI,CAAC;EACjD,MAAMC,KAAK,GAAGX,mBAAmB,CAACL,SAAS,CAAC,CAAC,EAAEE,QAAQ,CAAC,CAAC,EAAEa,IAAI,CAAC;EAChEF,MAAM,CAACI,OAAO,CAACC,GAAG,CAACF,KAAK,CAAC;EACzB,MAAMG,GAAG,GAAGlB,UAAU,CAACM,cAAc,CAAC;EACtC,IAAIY,GAAG,EAAE;IACPA,GAAG,CAACH,KAAK,CAACI,SAAS,CAACJ,KAAK,CAAC;EAC5B;EAEA,MAAMK,SAA4B,GAAG;IACnCL;EACF,CAAC;EAED,IAAIL,KAAK,CAACW,MAAM,EAAE;IAChB,IAAIH,GAAG,EAAE;MACP,IAAI,OAAOR,KAAK,CAACW,MAAM,KAAK,SAAS,EAAE;QACrCH,GAAG,CAACH,KAAK,CAACO,SAAS,CAACR,IAAI,EAAEC,KAAK,CAAC;MAClC,CAAC,MAAM;QACLG,GAAG,CAACH,KAAK,CAACO,SAAS,CAACZ,KAAK,CAACW,MAAM,EAAEN,KAAK,CAAC;MAC1C;IACF;EACF;EAEA,OAAAQ,iBAAA,CAAQ5B,cAAc;IAAA,IAACmB,IAAIA,CAAA;MAAA,OAAEJ,KAAK,CAACI,IAAI;IAAA;IAAEU,QAAQ;IAAcC,SAAS,EAAElB,SAAS;IAAA,IAAAmB,SAAA;MAAA,QAAAC,MAAA,OAC9EA,MAAA,OAAAZ,KAAK,CAACa,eAAe,CAACC,IAAI,GAAG,CAAC,OAAAN,iBAAA,CAE1BlB,gBAAgB;QAAA,IAACyB,OAAOA,CAAA;UAAA,OAAEf,KAAK,CAACa,eAAe;QAAA;MAAA,UAC/C,IAAI,IAELG,SAAS,GAAAR,iBAAA,CAAEf,iBAAiB,CAACwB,QAAQ;QAACC,KAAK,EAAEb,SAAS;QAAA,IAAAM,SAAA;UAAA,OAAAH,iBAAA,CACvD1B,KAAK;YAACoC,KAAK,EAAElB,KAAK;YAAA,IAAAW,SAAA;cAAA,OAAGhB,KAAK,CAACgB,QAAQ;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAG5C","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface TSConfigJsonProps {
|
|
2
2
|
outDir?: string;
|
|
3
3
|
}
|
|
4
|
-
export declare function TSConfigJson(props: TSConfigJsonProps):
|
|
4
|
+
export declare function TSConfigJson(props: TSConfigJsonProps): import("@alloy-js/core").Children;
|
|
5
5
|
//# sourceMappingURL=TsConfigJson.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TsConfigJson.d.ts","sourceRoot":"","sources":["../../../src/components/TsConfigJson.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"TsConfigJson.d.ts","sourceRoot":"","sources":["../../../src/components/TsConfigJson.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qCAqDpD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseDeclarationProps } from "./Declaration.js";
|
|
2
2
|
export interface TypeDeclarationProps extends BaseDeclarationProps {
|
|
3
3
|
}
|
|
4
|
-
export declare function TypeDeclaration(props: TypeDeclarationProps):
|
|
4
|
+
export declare function TypeDeclaration(props: TypeDeclarationProps): import("@alloy-js/core").Children;
|
|
5
5
|
//# sourceMappingURL=TypeDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/TypeDeclaration.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAe,MAAM,kBAAkB,CAAC;AAErE,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;CAAG;AAErE,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"TypeDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/TypeDeclaration.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAe,MAAM,kBAAkB,CAAC;AAErE,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;CAAG;AAErE,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qCAI1D"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
1
2
|
export interface ValueExpressionProps {
|
|
2
3
|
jsValue?: unknown;
|
|
3
4
|
}
|
|
4
|
-
export declare function ValueExpression(props: ValueExpressionProps):
|
|
5
|
+
export declare function ValueExpression(props: ValueExpressionProps): Children;
|
|
5
6
|
//# sourceMappingURL=ValueExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueExpression.d.ts","sourceRoot":"","sources":["../../../src/components/ValueExpression.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ValueExpression.d.ts","sourceRoot":"","sources":["../../../src/components/ValueExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,MAAM,gBAAgB,CAAC;AAIhD,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,QAAQ,CAyBrE"}
|
|
@@ -9,8 +9,10 @@ export function ValueExpression(props) {
|
|
|
9
9
|
return "undefined";
|
|
10
10
|
} else if (typeof jsValue === "number" || typeof jsValue === "boolean") {
|
|
11
11
|
return String(jsValue);
|
|
12
|
+
} else if (typeof jsValue === "bigint") {
|
|
13
|
+
return `${jsValue}n`;
|
|
12
14
|
} else if (typeof jsValue === "string") {
|
|
13
|
-
return
|
|
15
|
+
return JSON.stringify(jsValue);
|
|
14
16
|
} else if (typeof jsValue === "object") {
|
|
15
17
|
if (jsValue === null) {
|
|
16
18
|
return "null";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueExpression.js","names":["memo","ArrayExpression","ObjectExpression","ValueExpression","props","jsValue","String","Array","isArray","_$createComponent"],"sources":["../../../src/components/ValueExpression.tsx"],"sourcesContent":[null],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ValueExpression.js","names":["memo","ArrayExpression","ObjectExpression","ValueExpression","props","jsValue","String","JSON","stringify","Array","isArray","_$createComponent"],"sources":["../../../src/components/ValueExpression.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAAmBA,IAAI,QAAQ,gBAAgB;AAC/C,SAASC,eAAe,QAAQ,sBAAsB;AACtD,SAASC,gBAAgB,QAAQ,uBAAuB;AAMxD,OAAO,SAASC,eAAeA,CAACC,KAA2B,EAAY;EACrE,OAAOJ,IAAI,CAAC,MAAgB;IAC1B,MAAMK,OAAO,GAAGD,KAAK,CAACC,OAAO;IAE7B,IAAI,OAAOA,OAAO,KAAK,WAAW,EAAE;MAClC,OAAO,WAAW;IACpB,CAAC,MAAM,IAAI,OAAOA,OAAO,KAAK,QAAQ,IAAI,OAAOA,OAAO,KAAK,SAAS,EAAE;MACtE,OAAOC,MAAM,CAACD,OAAO,CAAC;IACxB,CAAC,MAAM,IAAI,OAAOA,OAAO,KAAK,QAAQ,EAAE;MACtC,OAAO,GAAGA,OAAO,GAAG;IACtB,CAAC,MAAM,IAAI,OAAOA,OAAO,KAAK,QAAQ,EAAE;MACtC,OAAOE,IAAI,CAACC,SAAS,CAACH,OAAO,CAAC;IAChC,CAAC,MAAM,IAAI,OAAOA,OAAO,KAAK,QAAQ,EAAE;MACtC,IAAIA,OAAO,KAAK,IAAI,EAAE;QACpB,OAAO,MAAM;MACf,CAAC,MAAM,IAAII,KAAK,CAACC,OAAO,CAACL,OAAO,CAAC,EAAE;QACjC,OAAAM,iBAAA,CAAQV,eAAe;UAACI,OAAO,EAAEA;QAAO;MAC1C,CAAC,MAAM;QACL,OAAAM,iBAAA,CAAQT,gBAAgB;UAACG,OAAO,EAAEA;QAAO;MAC3C;IACF,CAAC,MAAM,IAAI,OAAOA,OAAO,KAAK,UAAU,EAAE;MACxC;MACA,OAAOA,OAAO;IAChB;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -7,5 +7,5 @@ export interface VarDeclarationProps extends BaseDeclarationProps {
|
|
|
7
7
|
value?: Children;
|
|
8
8
|
type?: Children;
|
|
9
9
|
}
|
|
10
|
-
export declare function VarDeclaration(props: VarDeclarationProps):
|
|
10
|
+
export declare function VarDeclaration(props: VarDeclarationProps): Children;
|
|
11
11
|
//# sourceMappingURL=VarDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/VarDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAKT,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"VarDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/VarDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAKT,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,YAqBxD"}
|
|
@@ -11,6 +11,22 @@ export declare const Block: (props?: base.BlockProps | undefined) => import("@al
|
|
|
11
11
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.BlockProps>;
|
|
12
12
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.BlockProps>;
|
|
13
13
|
};
|
|
14
|
+
export declare const ClassDeclaration: (props: base.ClassDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps> & {
|
|
15
|
+
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps>;
|
|
16
|
+
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps>;
|
|
17
|
+
};
|
|
18
|
+
export declare const ClassField: (props: base.ClassFieldProps) => import("@alloy-js/core").ComponentCreator<base.ClassFieldProps> & {
|
|
19
|
+
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassFieldProps>;
|
|
20
|
+
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassFieldProps>;
|
|
21
|
+
};
|
|
22
|
+
export declare const ClassMember: (props: base.ClassMemberProps) => import("@alloy-js/core").ComponentCreator<base.ClassMemberProps> & {
|
|
23
|
+
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassMemberProps>;
|
|
24
|
+
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassMemberProps>;
|
|
25
|
+
};
|
|
26
|
+
export declare const ClassMethod: (props: base.ClassMethodProps) => import("@alloy-js/core").ComponentCreator<base.ClassMethodProps> & {
|
|
27
|
+
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassMethodProps>;
|
|
28
|
+
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassMethodProps>;
|
|
29
|
+
};
|
|
14
30
|
export declare const Declaration: (props: base.DeclarationProps) => import("@alloy-js/core").ComponentCreator<base.DeclarationProps> & {
|
|
15
31
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.DeclarationProps>;
|
|
16
32
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.DeclarationProps>;
|
|
@@ -27,6 +43,10 @@ export declare const ExportStatement: (props?: base.ExportStatementProps | undef
|
|
|
27
43
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ExportStatementProps>;
|
|
28
44
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ExportStatementProps>;
|
|
29
45
|
};
|
|
46
|
+
export declare const FunctionCallExpression: (props: base.FunctionCallExpressionProps) => import("@alloy-js/core").ComponentCreator<base.FunctionCallExpressionProps> & {
|
|
47
|
+
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.FunctionCallExpressionProps>;
|
|
48
|
+
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.FunctionCallExpressionProps>;
|
|
49
|
+
};
|
|
30
50
|
export declare const FunctionDeclaration: (props: base.FunctionDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.FunctionDeclarationProps> & {
|
|
31
51
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.FunctionDeclarationProps>;
|
|
32
52
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.FunctionDeclarationProps>;
|
|
@@ -91,12 +111,4 @@ export declare const VarDeclaration: (props: base.VarDeclarationProps) => import
|
|
|
91
111
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.VarDeclarationProps>;
|
|
92
112
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.VarDeclarationProps>;
|
|
93
113
|
};
|
|
94
|
-
export declare const ClassDeclaration: (props: base.ClassDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps> & {
|
|
95
|
-
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps>;
|
|
96
|
-
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps>;
|
|
97
|
-
};
|
|
98
|
-
export declare const ClassField: (props: base.ClassFieldProps) => import("@alloy-js/core").ComponentCreator<base.ClassFieldProps> & {
|
|
99
|
-
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassFieldProps>;
|
|
100
|
-
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassFieldProps>;
|
|
101
|
-
};
|
|
102
114
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stc/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,KAAK;;;CAAkB,CAAC;AACrC,eAAO,MAAM,WAAW;;;CAAwB,CAAC;AACjD,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,mBAAmB;;;CAAgC,CAAC;AACjE,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,gBAAgB;;;CAA6B,CAAC;AAC3D,eAAO,MAAM,oBAAoB;;;CAAiC,CAAC;AACnE,eAAO,MAAM,mBAAmB;;;CAAgC,CAAC;AACjE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AAM,mBAAmB;;;CAAgC,CAAC;AACjE,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,gBAAgB;;;CAA6B,CAAC;AAC3D,eAAO,MAAM,cAAc;;;CAA2B,CAAC;AACvD,eAAO,MAAM,gBAAgB;;;CAA6B,CAAC;AAC3D,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,SAAS;;;CAAsB,CAAC;AAC7C,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,YAAY;;;CAAyB,CAAC;AACnD,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,cAAc;;;CAA2B,CAAC"}
|
|
@@ -3,10 +3,15 @@ import * as base from "../index.js";
|
|
|
3
3
|
export const ArrayExpression = stc(base.ArrayExpression);
|
|
4
4
|
export const BarrelFile = stc(base.BarrelFile);
|
|
5
5
|
export const Block = stc(base.Block);
|
|
6
|
+
export const ClassDeclaration = stc(base.ClassDeclaration);
|
|
7
|
+
export const ClassField = stc(base.ClassField);
|
|
8
|
+
export const ClassMember = stc(base.ClassMember);
|
|
9
|
+
export const ClassMethod = stc(base.ClassMethod);
|
|
6
10
|
export const Declaration = stc(base.Declaration);
|
|
7
11
|
export const EnumDeclaration = stc(base.EnumDeclaration);
|
|
8
12
|
export const EnumMember = stc(base.EnumMember);
|
|
9
13
|
export const ExportStatement = stc(base.ExportStatement);
|
|
14
|
+
export const FunctionCallExpression = stc(base.FunctionCallExpression);
|
|
10
15
|
export const FunctionDeclaration = stc(base.FunctionDeclaration);
|
|
11
16
|
export const ImportStatement = stc(base.ImportStatement);
|
|
12
17
|
export const ImportStatements = stc(base.ImportStatements);
|
|
@@ -23,6 +28,4 @@ export const TSConfigJson = stc(base.TSConfigJson);
|
|
|
23
28
|
export const TypeDeclaration = stc(base.TypeDeclaration);
|
|
24
29
|
export const ValueExpression = stc(base.ValueExpression);
|
|
25
30
|
export const VarDeclaration = stc(base.VarDeclaration);
|
|
26
|
-
export const ClassDeclaration = stc(base.ClassDeclaration);
|
|
27
|
-
export const ClassField = stc(base.ClassField);
|
|
28
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["stc","base","ArrayExpression","BarrelFile","Block","Declaration","EnumDeclaration","EnumMember","ExportStatement","FunctionDeclaration","ImportStatement","ImportStatements","InterfaceDeclaration","InterfaceExpression","InterfaceMember","ObjectExpression","ObjectProperty","PackageDirectory","PackageJsonFile","Reference","SourceFile","TSConfigJson","TypeDeclaration","ValueExpression","VarDeclaration"
|
|
1
|
+
{"version":3,"file":"index.js","names":["stc","base","ArrayExpression","BarrelFile","Block","ClassDeclaration","ClassField","ClassMember","ClassMethod","Declaration","EnumDeclaration","EnumMember","ExportStatement","FunctionCallExpression","FunctionDeclaration","ImportStatement","ImportStatements","InterfaceDeclaration","InterfaceExpression","InterfaceMember","ObjectExpression","ObjectProperty","PackageDirectory","PackageJsonFile","Reference","SourceFile","TSConfigJson","TypeDeclaration","ValueExpression","VarDeclaration"],"sources":["../../../../src/components/stc/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AACpC,OAAO,KAAKC,IAAI,MAAM,aAAa;AAEnC,OAAO,MAAMC,eAAe,GAAGF,GAAG,CAACC,IAAI,CAACC,eAAe,CAAC;AACxD,OAAO,MAAMC,UAAU,GAAGH,GAAG,CAACC,IAAI,CAACE,UAAU,CAAC;AAC9C,OAAO,MAAMC,KAAK,GAAGJ,GAAG,CAACC,IAAI,CAACG,KAAK,CAAC;AACpC,OAAO,MAAMC,gBAAgB,GAAGL,GAAG,CAACC,IAAI,CAACI,gBAAgB,CAAC;AAC1D,OAAO,MAAMC,UAAU,GAAGN,GAAG,CAACC,IAAI,CAACK,UAAU,CAAC;AAC9C,OAAO,MAAMC,WAAW,GAAGP,GAAG,CAACC,IA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ACuB,SAAS,CAAC;AAC5C,OAAO,MAAMC,UAAU,GAAGzB,GAAG,CAACC,IAAI,CAACwB,UAAU,CAAC;AAC9C,OAAO,MAAMC,YAAY,GAAG1B,GAAG,CAACC,IAAI,CAACyB,YAAY,CAAC;AAClD,OAAO,MAAMC,eAAe,GAAG3B,GAAG,CAACC,IAAI,CAAC0B,eAAe,CAAC;AACxD,OAAO,MAAMC,eAAe,GAAG5B,GAAG,CAACC,IAAI,CAAC2B,eAAe,CAAC;AACxD,OAAO,MAAMC,cAAc,GAAG7B,GAAG,CAACC,IAAI,CAAC4B,cAAc,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name-policy.d.ts","sourceRoot":"","sources":["../../src/name-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,UAAU,EAAiB,MAAM,gBAAgB,CAAC;AAG7E,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,WAAW,GACX,OAAO,GACP,UAAU,GACV,MAAM,GACN,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,aAAa,GACb,WAAW,GACX,kBAAkB,GAClB,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"name-policy.d.ts","sourceRoot":"","sources":["../../src/name-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,UAAU,EAAiB,MAAM,gBAAgB,CAAC;AAG7E,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,WAAW,GACX,OAAO,GACP,UAAU,GACV,MAAM,GACN,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,aAAa,GACb,WAAW,GACX,kBAAkB,GAClB,MAAM,CAAC;AA0FX,wBAAgB,kBAAkB,IAAI,UAAU,CAAC,kBAAkB,CAAC,CAyBnE;AAED,wBAAgB,eAAe,IAAI,UAAU,CAAC,kBAAkB,CAAC,CAEhE"}
|