@alloy-js/typescript 0.9.0 → 0.11.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 +22 -0
- package/dist/src/builtins/node.js +1 -2
- package/dist/src/components/ArrayExpression.js +2 -5
- package/dist/src/components/ArrowFunction.d.ts +40 -0
- package/dist/src/components/ArrowFunction.d.ts.map +1 -0
- package/dist/src/components/ArrowFunction.js +67 -0
- package/dist/src/components/BarrelFile.js +1 -2
- package/dist/src/components/BlockScope.js +2 -4
- package/dist/src/components/CallSignature.js +2 -4
- package/dist/src/components/ClassDeclaration.js +2 -6
- package/dist/src/components/CommaList.js +2 -5
- package/dist/src/components/Declaration.js +3 -5
- package/dist/src/components/EnumDeclaration.js +2 -5
- package/dist/src/components/EnumMember.js +2 -4
- package/dist/src/components/ExportStatement.js +1 -2
- package/dist/src/components/FunctionBase.d.ts +60 -0
- package/dist/src/components/FunctionBase.d.ts.map +1 -0
- package/dist/src/components/FunctionBase.js +207 -0
- package/dist/src/components/FunctionCallExpression.js +2 -5
- package/dist/src/components/FunctionDeclaration.d.ts +3 -18
- package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
- package/dist/src/components/FunctionDeclaration.js +9 -157
- package/dist/src/components/FunctionExpression.d.ts +39 -0
- package/dist/src/components/FunctionExpression.d.ts.map +1 -0
- package/dist/src/components/FunctionExpression.js +66 -0
- package/dist/src/components/FunctionType.d.ts +39 -0
- package/dist/src/components/FunctionType.d.ts.map +1 -0
- package/dist/src/components/FunctionType.js +73 -0
- package/dist/src/components/IfStatement.js +2 -4
- package/dist/src/components/ImportStatement.js +1 -2
- package/dist/src/components/Interface.d.ts.map +1 -1
- package/dist/src/components/Interface.js +32 -11
- package/dist/src/components/InterfaceMethod.d.ts +43 -0
- package/dist/src/components/InterfaceMethod.d.ts.map +1 -0
- package/dist/src/components/InterfaceMethod.js +87 -0
- package/dist/src/components/JSDoc.js +1 -2
- package/dist/src/components/JSDocComment.js +2 -4
- package/dist/src/components/JSDocExample.js +2 -5
- package/dist/src/components/JSDocParam.js +2 -5
- package/dist/src/components/MemberChainExpression.js +2 -4
- package/dist/src/components/MemberDeclaration.d.ts +30 -0
- package/dist/src/components/MemberDeclaration.d.ts.map +1 -0
- package/dist/src/components/MemberDeclaration.js +29 -0
- package/dist/src/components/MemberExpression.d.ts +1 -2
- package/dist/src/components/MemberExpression.d.ts.map +1 -1
- package/dist/src/components/MemberExpression.js +2 -5
- package/dist/src/components/ObjectExpression.js +2 -5
- package/dist/src/components/PackageDirectory.js +2 -5
- package/dist/src/components/PackageJson.js +1 -2
- package/dist/src/components/PropertyName.js +1 -2
- package/dist/src/components/Reference.js +1 -2
- package/dist/src/components/SingleLineCommentBlock.js +2 -4
- package/dist/src/components/SourceFile.js +2 -4
- package/dist/src/components/SwitchStatement.js +2 -5
- package/dist/src/components/TsConfigJson.js +1 -2
- package/dist/src/components/TypeDeclaration.js +2 -6
- package/dist/src/components/ValueExpression.js +1 -2
- package/dist/src/components/VarDeclaration.js +2 -5
- package/dist/src/components/index.d.ts +7 -0
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +7 -1
- package/dist/src/components/stc/index.d.ts +8 -0
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js +9 -2
- package/dist/src/context/private-scope.js +1 -2
- package/dist/src/create-package.js +1 -2
- package/dist/src/index.js +1 -2
- package/dist/src/name-conflict-resolver.js +1 -2
- package/dist/src/name-policy.js +1 -2
- package/dist/src/parameter-descriptor.d.ts +27 -17
- package/dist/src/parameter-descriptor.d.ts.map +1 -1
- package/dist/src/source-directory-data.js +1 -2
- package/dist/src/symbols/index.js +1 -2
- package/dist/src/symbols/reference.js +2 -3
- package/dist/src/symbols/scopes.js +1 -2
- package/dist/src/symbols/ts-member-scope.js +1 -2
- package/dist/src/symbols/ts-module-scope.js +1 -2
- package/dist/src/symbols/ts-output-symbol.js +1 -2
- package/dist/src/symbols/ts-package-scope.js +1 -2
- package/dist/src/utils.js +1 -2
- package/dist/test/array.test.js +105 -0
- package/dist/test/arrow-function.test.d.ts +2 -0
- package/dist/test/arrow-function.test.d.ts.map +1 -0
- package/dist/test/arrow-function.test.js +194 -0
- package/dist/test/barrel.test.js +53 -0
- package/dist/test/basic.test.js +91 -0
- package/dist/test/block-scope.test.js +30 -0
- package/dist/test/class.test.js +438 -0
- package/dist/test/enum-jsdoc.test.js +88 -0
- package/dist/test/enum.test.js +247 -0
- package/dist/test/externals.test.js +145 -0
- package/dist/test/function-call-expression.test.js +87 -0
- package/dist/test/function-declaration-jsdoc.test.js +91 -0
- package/dist/test/function-declaration.test.js +228 -0
- package/dist/test/function-expression.test.d.ts +2 -0
- package/dist/test/function-expression.test.d.ts.map +1 -0
- package/dist/test/function-expression.test.js +194 -0
- package/dist/test/function-type.test.d.ts +2 -0
- package/dist/test/function-type.test.d.ts.map +1 -0
- package/dist/test/function-type.test.js +122 -0
- package/dist/test/if-statement.test.js +25 -0
- package/dist/test/imports.test.js +434 -0
- package/dist/test/interface-jsdoc.test.js +178 -0
- package/dist/test/interface.test.d.ts.map +1 -1
- package/dist/test/interface.test.js +490 -0
- package/dist/test/jscomment.test.js +70 -0
- package/dist/test/jsdoc.test.js +134 -0
- package/dist/test/jsdocparam.test.js +164 -0
- package/dist/test/member-chain.test.js +141 -0
- package/dist/test/member-expression.test.js +359 -0
- package/dist/test/name-conflict.test.js +108 -0
- package/dist/test/name-policy.test.js +122 -0
- package/dist/test/package-external.test.js +196 -0
- package/dist/test/package-json.test.js +93 -0
- package/dist/test/package.test.js +136 -0
- package/dist/test/reference.test.js +81 -0
- package/dist/test/source-file.test.js +36 -0
- package/dist/test/switch-statement.test.js +61 -0
- package/dist/test/utils.js +45 -0
- package/dist/test/value-expression.test.js +30 -0
- package/dist/test/values.test.js +351 -0
- package/dist/test/var-declaration-jsdoc.test.js +50 -0
- package/dist/test/var-declaration.test.js +63 -0
- package/dist/test/vitest.d.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -17
- package/src/components/ArrowFunction.tsx +87 -0
- package/src/components/Declaration.tsx +1 -1
- package/src/components/FunctionBase.tsx +271 -0
- package/src/components/FunctionDeclaration.tsx +13 -195
- package/src/components/FunctionExpression.tsx +86 -0
- package/src/components/FunctionType.tsx +88 -0
- package/src/components/Interface.tsx +33 -5
- package/src/components/InterfaceMethod.tsx +96 -0
- package/src/components/MemberDeclaration.tsx +70 -0
- package/src/components/MemberExpression.tsx +1 -1
- package/src/components/index.ts +11 -0
- package/src/components/stc/index.ts +8 -0
- package/src/parameter-descriptor.ts +29 -18
- package/src/symbols/reference.ts +4 -1
- package/temp/api.json +3099 -863
- package/test/arrow-function.test.tsx +188 -0
- package/test/class.test.tsx +1 -2
- package/test/function-call-expression.test.tsx +1 -2
- package/test/function-declaration.test.tsx +1 -2
- package/test/function-expression.test.tsx +195 -0
- package/test/function-type.test.tsx +118 -0
- package/test/interface.test.tsx +256 -6
- package/tsdoc-metadata.json +1 -1
- package/babel.config.cjs +0 -4
- package/dist/src/builtins/index.js.map +0 -1
- package/dist/src/builtins/node.js.map +0 -1
- package/dist/src/components/ArrayExpression.js.map +0 -1
- package/dist/src/components/BarrelFile.js.map +0 -1
- package/dist/src/components/BlockScope.js.map +0 -1
- package/dist/src/components/CallSignature.js.map +0 -1
- package/dist/src/components/ClassDeclaration.js.map +0 -1
- package/dist/src/components/CommaList.js.map +0 -1
- package/dist/src/components/Declaration.js.map +0 -1
- package/dist/src/components/EnumDeclaration.js.map +0 -1
- package/dist/src/components/EnumMember.js.map +0 -1
- package/dist/src/components/ExportStatement.js.map +0 -1
- package/dist/src/components/FunctionCallExpression.js.map +0 -1
- package/dist/src/components/FunctionDeclaration.js.map +0 -1
- package/dist/src/components/IfStatement.js.map +0 -1
- package/dist/src/components/ImportStatement.js.map +0 -1
- package/dist/src/components/Interface.js.map +0 -1
- package/dist/src/components/JSDoc.js.map +0 -1
- package/dist/src/components/JSDocComment.js.map +0 -1
- package/dist/src/components/JSDocExample.js.map +0 -1
- package/dist/src/components/JSDocParam.js.map +0 -1
- package/dist/src/components/MemberChainExpression.js.map +0 -1
- package/dist/src/components/MemberExpression.js.map +0 -1
- package/dist/src/components/ObjectExpression.js.map +0 -1
- package/dist/src/components/PackageDirectory.js.map +0 -1
- package/dist/src/components/PackageJson.js.map +0 -1
- package/dist/src/components/PropertyName.js.map +0 -1
- package/dist/src/components/Reference.js.map +0 -1
- package/dist/src/components/SingleLineCommentBlock.js.map +0 -1
- package/dist/src/components/SourceFile.js.map +0 -1
- package/dist/src/components/SwitchStatement.js.map +0 -1
- package/dist/src/components/TsConfigJson.js.map +0 -1
- package/dist/src/components/TypeDeclaration.js.map +0 -1
- package/dist/src/components/ValueExpression.js.map +0 -1
- package/dist/src/components/VarDeclaration.js.map +0 -1
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/components/stc/index.js.map +0 -1
- package/dist/src/context/index.js.map +0 -1
- package/dist/src/context/private-scope.js.map +0 -1
- package/dist/src/create-package.js.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/name-conflict-resolver.js.map +0 -1
- package/dist/src/name-policy.js.map +0 -1
- package/dist/src/parameter-descriptor.js.map +0 -1
- package/dist/src/source-directory-data.js.map +0 -1
- package/dist/src/symbols/index.js.map +0 -1
- package/dist/src/symbols/reference.js.map +0 -1
- package/dist/src/symbols/scopes.js.map +0 -1
- package/dist/src/symbols/ts-member-scope.js.map +0 -1
- package/dist/src/symbols/ts-module-scope.js.map +0 -1
- package/dist/src/symbols/ts-output-symbol.js.map +0 -1
- package/dist/src/symbols/ts-package-scope.js.map +0 -1
- package/dist/src/utils.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createIntrinsic as _$createIntrinsic, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
/**
|
|
4
3
|
* A JSDoc comment block. This is a low-level component that merely creates the
|
|
5
4
|
* block. Consider using {@link JSDoc} if you want to create more complex
|
|
@@ -12,5 +11,4 @@ export function JSDocComment(props) {
|
|
|
12
11
|
return [_$createIntrinsic("hbr", {}), _$memo(() => props.children)];
|
|
13
12
|
}
|
|
14
13
|
}), _$createIntrinsic("hbr", {}), " **/"];
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=JSDocComment.js.map
|
|
14
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createIntrinsic as _$createIntrinsic, memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import { Show } from "@alloy-js/core";
|
|
5
3
|
/**
|
|
6
4
|
* Create a JSDoc example set off with `@example`. When the `fenced` prop is true, a `language` prop can
|
|
@@ -22,5 +20,4 @@ export function JSDocExample(props) {
|
|
|
22
20
|
return [_$createIntrinsic("hbr", {}), "```"];
|
|
23
21
|
}
|
|
24
22
|
})];
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=JSDocExample.js.map
|
|
23
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import { For, Prose, Show } from "@alloy-js/core";
|
|
5
3
|
/**
|
|
6
4
|
* A component that creates a JSDoc block with `@param` tags for each parameter.
|
|
@@ -117,5 +115,4 @@ function JSDocParamDescription(props) {
|
|
|
117
115
|
})];
|
|
118
116
|
}
|
|
119
117
|
});
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=JSDocParam.js.map
|
|
118
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { childrenArray, computed, For, List, Show } from "@alloy-js/core";
|
|
4
3
|
import { isComponentCreator } from "@alloy-js/core/jsx-runtime";
|
|
5
4
|
import { FunctionCallExpression } from "./FunctionCallExpression.js";
|
|
@@ -96,5 +95,4 @@ function flattenCallChains(children) {
|
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
return flatChildren;
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=MemberChainExpression.js.map
|
|
98
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { MemberDeclarationPropsWithInfo, OutputSymbolFlags } from "@alloy-js/core";
|
|
2
|
+
import { TypeScriptElements } from "../name-policy.js";
|
|
3
|
+
import { TSOutputSymbol } from "../symbols/index.js";
|
|
4
|
+
export interface MemberDeclarationProps extends Omit<MemberDeclarationPropsWithInfo, "name"> {
|
|
5
|
+
/**
|
|
6
|
+
* The name of this member declaration.
|
|
7
|
+
*/
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Name that shouldn't go through the name policy resolver again. */
|
|
10
|
+
exactName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Whether this is a memberdeclaration of a type (e.g. interface, type alias) or a
|
|
13
|
+
* value (e.g. var, const, let).
|
|
14
|
+
*/
|
|
15
|
+
kind?: "type" | "value";
|
|
16
|
+
/**
|
|
17
|
+
* The name policy kind to apply to the memberdeclaration.
|
|
18
|
+
*/
|
|
19
|
+
nameKind?: TypeScriptElements;
|
|
20
|
+
/**
|
|
21
|
+
* Flags for the symbol created by this component.
|
|
22
|
+
*/
|
|
23
|
+
flags?: OutputSymbolFlags;
|
|
24
|
+
/**
|
|
25
|
+
* The symbol to use for this memberdeclaration.
|
|
26
|
+
*/
|
|
27
|
+
symbol?: TSOutputSymbol;
|
|
28
|
+
}
|
|
29
|
+
export declare function MemberDeclaration(props: Readonly<MemberDeclarationProps>): import("@alloy-js/core").Children;
|
|
30
|
+
//# sourceMappingURL=MemberDeclaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/MemberDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,8BAA8B,EAC9B,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAmB,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAEL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC;IACpD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAE9B;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,qCAyBxE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { MemberDeclaration as CoreMemberDeclaration } from "@alloy-js/core";
|
|
3
|
+
import { useTSNamePolicy } from "../name-policy.js";
|
|
4
|
+
import { createTSSymbol, TSSymbolFlags } from "../symbols/index.js";
|
|
5
|
+
export function MemberDeclaration(props) {
|
|
6
|
+
let sym;
|
|
7
|
+
if (props.symbol) {
|
|
8
|
+
sym = props.symbol;
|
|
9
|
+
} else {
|
|
10
|
+
const namePolicy = useTSNamePolicy();
|
|
11
|
+
let tsFlags = TSSymbolFlags.None;
|
|
12
|
+
if (props.kind === "type") {
|
|
13
|
+
tsFlags |= TSSymbolFlags.TypeSymbol;
|
|
14
|
+
}
|
|
15
|
+
sym = createTSSymbol({
|
|
16
|
+
name: props.exactName ?? namePolicy.getName(props.name, props.nameKind),
|
|
17
|
+
refkey: props.refkey,
|
|
18
|
+
flags: props.flags,
|
|
19
|
+
tsFlags,
|
|
20
|
+
metadata: props.metadata
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return _$createComponent(CoreMemberDeclaration, {
|
|
24
|
+
symbol: sym,
|
|
25
|
+
get children() {
|
|
26
|
+
return props.children;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -36,7 +36,7 @@ export declare function MemberExpression(props: MemberExpressionProps): Children
|
|
|
36
36
|
export declare namespace MemberExpression {
|
|
37
37
|
var Part: (props: MemberExpressionPartProps) => void;
|
|
38
38
|
}
|
|
39
|
-
interface MemberExpressionPartProps {
|
|
39
|
+
export interface MemberExpressionPartProps {
|
|
40
40
|
/**
|
|
41
41
|
* The identifier for this part of the member expression.
|
|
42
42
|
*/
|
|
@@ -58,5 +58,4 @@ interface MemberExpressionPartProps {
|
|
|
58
58
|
*/
|
|
59
59
|
nullish?: boolean;
|
|
60
60
|
}
|
|
61
|
-
export {};
|
|
62
61
|
//# sourceMappingURL=MemberExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberExpression.d.ts","sourceRoot":"","sources":["../../../src/components/MemberExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAKR,YAAY,EAGZ,MAAM,EAGP,MAAM,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AASD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,QAAQ,CAwHvE;yBAxHe,gBAAgB;sBA+KS,yBAAyB;;AAhClE,
|
|
1
|
+
{"version":3,"file":"MemberExpression.d.ts","sourceRoot":"","sources":["../../../src/components/MemberExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAKR,YAAY,EAGZ,MAAM,EAGP,MAAM,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AASD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,QAAQ,CAwHvE;yBAxHe,gBAAgB;sBA+KS,yBAAyB;;AAhClE,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createIntrinsic as _$createIntrinsic, memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import { childrenArray, computed, For, isComponentCreator, ref, toRef, useBinder } from "@alloy-js/core";
|
|
5
3
|
import { isValidJSIdentifier } from "../utils.js";
|
|
6
4
|
/**
|
|
@@ -175,5 +173,4 @@ MemberExpression.Part = function (props) {
|
|
|
175
173
|
* This component does nothing except hold props which are retrieved by
|
|
176
174
|
* the `MemberExpression` component.
|
|
177
175
|
*/
|
|
178
|
-
};
|
|
179
|
-
//# sourceMappingURL=MemberExpression.js.map
|
|
176
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import { AssignmentContext, Block, computed, createAssignmentContext, For, getAssignmentSymbol, Match, MemberScope, OutputSymbolFlags, Switch, Wrap } from "@alloy-js/core";
|
|
5
3
|
import { useTSNamePolicy } from "../name-policy.js";
|
|
6
4
|
import { createTSSymbol } from "../symbols/index.js";
|
|
@@ -107,5 +105,4 @@ export function ObjectProperty(props) {
|
|
|
107
105
|
value: assignmentContext,
|
|
108
106
|
children: value
|
|
109
107
|
})];
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=ObjectExpression.js.map
|
|
108
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, mergeProps as _$mergeProps, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import { createNamedContext, Scope, shallowRef, SourceDirectory, SourceDirectoryContext, splitProps, useBinder, useContext, useScope } from "@alloy-js/core";
|
|
5
3
|
import { join } from "pathe";
|
|
6
4
|
import { createTSPackageScope } from "../symbols/index.js";
|
|
@@ -51,5 +49,4 @@ function createPackageContext(name, version, path) {
|
|
|
51
49
|
scope,
|
|
52
50
|
outFileMapper: shallowRef(path => modulePath(path))
|
|
53
51
|
};
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=PackageDirectory.js.map
|
|
52
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { Prose } from "@alloy-js/core";
|
|
4
3
|
/**
|
|
5
4
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
@@ -16,5 +15,4 @@ export function SingleLineCommentBlock(props) {
|
|
|
16
15
|
});
|
|
17
16
|
}
|
|
18
17
|
})];
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=SingleLineCommentBlock.js.map
|
|
18
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { SourceFile as CoreSourceFile, createNamedContext, Scope, Show, SourceDirectoryContext, useBinder, useContext, useScope } from "@alloy-js/core";
|
|
4
3
|
import { join } from "pathe";
|
|
5
4
|
import { getSourceDirectoryData } from "../source-directory-data.js";
|
|
@@ -96,5 +95,4 @@ function SourceFileHeader(props) {
|
|
|
96
95
|
return props.header;
|
|
97
96
|
}
|
|
98
97
|
}), _$createIntrinsic("hbr", {})];
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=SourceFile.js.map
|
|
98
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import { Block, Indent, Match, Switch } from "@alloy-js/core";
|
|
5
3
|
import { BlockScope } from "./BlockScope.js";
|
|
6
4
|
import { ValueExpression } from "./ValueExpression.js";
|
|
@@ -44,5 +42,4 @@ export function CaseClause(props) {
|
|
|
44
42
|
return [_$memo(() => props.children), _$memo(() => _$memo(() => !!props.break)() && [_$createIntrinsic("hbr", {}), "break;"])];
|
|
45
43
|
}
|
|
46
44
|
})];
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=SwitchStatement.js.map
|
|
45
|
+
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic, memo as _$memo, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
2
|
import { Name, Show } from "@alloy-js/core";
|
|
6
3
|
import { Declaration } from "./Declaration.js";
|
|
7
4
|
import { JSDoc } from "./JSDoc.js";
|
|
@@ -23,5 +20,4 @@ export function TypeDeclaration(props) {
|
|
|
23
20
|
return ["type ", _$createComponent(Name, {}), " = ", _$memo(() => props.children), ";"];
|
|
24
21
|
}
|
|
25
22
|
}))];
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=TypeDeclaration.js.map
|
|
23
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import { AssignmentContext, Declaration as CoreDeclaration, createAssignmentContext, Name, Show } from "@alloy-js/core";
|
|
5
3
|
import { useTSNamePolicy } from "../name-policy.js";
|
|
6
4
|
import { createTSSymbol } from "../symbols/index.js";
|
|
@@ -39,5 +37,4 @@ export function VarDeclaration(props) {
|
|
|
39
37
|
})];
|
|
40
38
|
}
|
|
41
39
|
})];
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=VarDeclaration.js.map
|
|
40
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "../parameter-descriptor.js";
|
|
2
2
|
export * from "./ArrayExpression.js";
|
|
3
|
+
export * from "./ArrowFunction.jsx";
|
|
3
4
|
export * from "./BarrelFile.js";
|
|
4
5
|
export * from "./BlockScope.js";
|
|
5
6
|
export * from "./CallSignature.jsx";
|
|
@@ -9,14 +10,20 @@ export * from "./Declaration.js";
|
|
|
9
10
|
export * from "./EnumDeclaration.js";
|
|
10
11
|
export * from "./EnumMember.js";
|
|
11
12
|
export * from "./ExportStatement.js";
|
|
13
|
+
export { type FunctionBodyProps, type FunctionParametersProps, type FunctionTypeParametersProps, } from "./FunctionBase.js";
|
|
12
14
|
export * from "./FunctionCallExpression.js";
|
|
13
15
|
export * from "./FunctionDeclaration.js";
|
|
16
|
+
export * from "./FunctionExpression.js";
|
|
17
|
+
export * from "./FunctionType.jsx";
|
|
18
|
+
export * from "./IfStatement.jsx";
|
|
14
19
|
export * from "./ImportStatement.js";
|
|
15
20
|
export * from "./Interface.js";
|
|
21
|
+
export * from "./InterfaceMethod.jsx";
|
|
16
22
|
export * from "./JSDoc.jsx";
|
|
17
23
|
export * from "./JSDocComment.jsx";
|
|
18
24
|
export * from "./JSDocExample.jsx";
|
|
19
25
|
export * from "./MemberChainExpression.jsx";
|
|
26
|
+
export * from "./MemberExpression.jsx";
|
|
20
27
|
export * from "./ObjectExpression.js";
|
|
21
28
|
export * from "./PackageDirectory.js";
|
|
22
29
|
export * from "./PackageJson.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAA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C;AACrC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "../parameter-descriptor.js";
|
|
2
2
|
export * from "./ArrayExpression.js";
|
|
3
|
+
export * from "./ArrowFunction.js";
|
|
3
4
|
export * from "./BarrelFile.js";
|
|
4
5
|
export * from "./BlockScope.js";
|
|
5
6
|
export * from "./CallSignature.js";
|
|
@@ -11,12 +12,17 @@ export * from "./EnumMember.js";
|
|
|
11
12
|
export * from "./ExportStatement.js";
|
|
12
13
|
export * from "./FunctionCallExpression.js";
|
|
13
14
|
export * from "./FunctionDeclaration.js";
|
|
15
|
+
export * from "./FunctionExpression.js";
|
|
16
|
+
export * from "./FunctionType.js";
|
|
17
|
+
export * from "./IfStatement.js";
|
|
14
18
|
export * from "./ImportStatement.js";
|
|
15
19
|
export * from "./Interface.js";
|
|
20
|
+
export * from "./InterfaceMethod.js";
|
|
16
21
|
export * from "./JSDoc.js";
|
|
17
22
|
export * from "./JSDocComment.js";
|
|
18
23
|
export * from "./JSDocExample.js";
|
|
19
24
|
export * from "./MemberChainExpression.js";
|
|
25
|
+
export * from "./MemberExpression.js";
|
|
20
26
|
export * from "./ObjectExpression.js";
|
|
21
27
|
export * from "./PackageDirectory.js";
|
|
22
28
|
export * from "./PackageJson.js";
|
|
@@ -27,4 +33,4 @@ export * from "./TsConfigJson.js";
|
|
|
27
33
|
export * from "./TypeDeclaration.js";
|
|
28
34
|
export * from "./ValueExpression.js";
|
|
29
35
|
export * from "./VarDeclaration.js";
|
|
30
|
-
|
|
36
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as base from "../index.js";
|
|
2
2
|
export declare const ArrayExpression: import("@alloy-js/core").StcSignature<base.ArrayExpressionProps>;
|
|
3
|
+
export declare const ArrowFunction: import("@alloy-js/core").StcSignature<base.ArrowFunctionProps>;
|
|
3
4
|
export declare const BarrelFile: import("@alloy-js/core").StcSignature<base.BarrelFileProps>;
|
|
4
5
|
export declare const CallSignature: import("@alloy-js/core").StcSignature<base.CallSignatureProps>;
|
|
5
6
|
export declare const ClassDeclaration: import("@alloy-js/core").StcSignature<base.ClassDeclarationProps>;
|
|
@@ -13,14 +14,20 @@ export declare const EnumMember: import("@alloy-js/core").StcSignature<base.Enum
|
|
|
13
14
|
export declare const ExportStatement: import("@alloy-js/core").StcSignature<base.ExportStatementProps>;
|
|
14
15
|
export declare const FunctionCallExpression: import("@alloy-js/core").StcSignature<base.FunctionCallExpressionProps>;
|
|
15
16
|
export declare const FunctionDeclaration: import("@alloy-js/core").StcSignature<base.FunctionDeclarationProps>;
|
|
17
|
+
export declare const FunctionExpression: import("@alloy-js/core").StcSignature<base.FunctionExpressionProps>;
|
|
18
|
+
export declare const IfStatement: import("@alloy-js/core").StcSignature<base.IfStatementProps>;
|
|
19
|
+
export declare const ElseClause: import("@alloy-js/core").StcSignature<base.ElseClauseProps>;
|
|
20
|
+
export declare const ElseIfClause: import("@alloy-js/core").StcSignature<base.ElseIfClauseProps>;
|
|
16
21
|
export declare const ImportStatement: import("@alloy-js/core").StcSignature<base.ImportStatementProps>;
|
|
17
22
|
export declare const ImportStatements: import("@alloy-js/core").StcSignature<base.ImportStatementsProps>;
|
|
18
23
|
export declare const InterfaceDeclaration: import("@alloy-js/core").StcSignature<base.InterfaceDeclarationProps>;
|
|
19
24
|
export declare const InterfaceExpression: import("@alloy-js/core").StcSignature<base.InterfaceExpressionProps>;
|
|
20
25
|
export declare const InterfaceMember: import("@alloy-js/core").StcSignature<base.InterfaceMemberProps>;
|
|
26
|
+
export declare const InterfaceMethod: import("@alloy-js/core").StcSignature<base.InterfaceMethodProps>;
|
|
21
27
|
export declare const JSDoc: import("@alloy-js/core").StcSignature<base.JSDocProps>;
|
|
22
28
|
export declare const JSDocExample: import("@alloy-js/core").StcSignature<base.JSDocExampleProps>;
|
|
23
29
|
export declare const JSDocComment: import("@alloy-js/core").StcSignature<base.JSDocCommentProps>;
|
|
30
|
+
export declare const MemberExpression: import("@alloy-js/core").StcSignature<base.MemberExpressionProps>;
|
|
24
31
|
export declare const MemberChainExpression: import("@alloy-js/core").StcSignature<base.MemberChainExpressionProps>;
|
|
25
32
|
export declare const ObjectExpression: import("@alloy-js/core").StcSignature<base.ObjectExpressionProps>;
|
|
26
33
|
export declare const ObjectProperty: import("@alloy-js/core").StcSignature<base.ObjectPropertyProps>;
|
|
@@ -31,6 +38,7 @@ export declare const SourceFile: import("@alloy-js/core").StcSignature<base.Sour
|
|
|
31
38
|
export declare const SwitchStatement: import("@alloy-js/core").StcSignature<base.SwitchStatementProps>;
|
|
32
39
|
export declare const CaseClause: import("@alloy-js/core").StcSignature<base.CaseClauseProps>;
|
|
33
40
|
export declare const TSConfigJson: import("@alloy-js/core").StcSignature<base.TSConfigJsonProps>;
|
|
41
|
+
export declare const FunctionType: import("@alloy-js/core").StcSignature<base.FunctionTypeProps>;
|
|
34
42
|
export declare const TypeDeclaration: import("@alloy-js/core").StcSignature<base.TypeDeclarationProps>;
|
|
35
43
|
export declare const ValueExpression: import("@alloy-js/core").StcSignature<base.ValueExpressionProps>;
|
|
36
44
|
export declare const VarDeclaration: import("@alloy-js/core").StcSignature<base.VarDeclarationProps>;
|
|
@@ -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,kEAA4B,CAAC;AACzD,eAAO,MAAM,UAAU,6DAAuB,CAAC;AAC/C,eAAO,MAAM,aAAa,gEAA0B,CAAC;AACrD,eAAO,MAAM,gBAAgB,mEAA6B,CAAC;AAC3D,eAAO,MAAM,UAAU,6DAAuB,CAAC;AAC/C,eAAO,MAAM,WAAW,8DAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,8DAAwB,CAAC;AACjD,eAAO,MAAM,SAAS,4DAAsB,CAAC;AAC7C,eAAO,MAAM,WAAW,8DAAwB,C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AAC;AAC3D,eAAO,MAAM,eAAe,kEAA4B,CAAC;AACzD,eAAO,MAAM,SAAS,4DAAsB,CAAC;AAC7C,eAAO,MAAM,UAAU,6DAAuB,CAAC;AAC/C,eAAO,MAAM,eAAe,kEAA4B,CAAC;AACzD,eAAO,MAAM,UAAU,6DAAuB,CAAC;AAC/C,eAAO,MAAM,YAAY,+DAAyB,CAAC;AACnD,eAAO,MAAM,YAAY,+DAAyB,CAAC;AACnD,eAAO,MAAM,eAAe,kEAA4B,CAAC;AACzD,eAAO,MAAM,eAAe,kEAA4B,CAAC;AACzD,eAAO,MAAM,cAAc,iEAA2B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { stc } from "@alloy-js/core";
|
|
2
2
|
import * as base from "../index.js";
|
|
3
3
|
export const ArrayExpression = stc(base.ArrayExpression);
|
|
4
|
+
export const ArrowFunction = stc(base.ArrowFunction);
|
|
4
5
|
export const BarrelFile = stc(base.BarrelFile);
|
|
5
6
|
export const CallSignature = stc(base.CallSignature);
|
|
6
7
|
export const ClassDeclaration = stc(base.ClassDeclaration);
|
|
@@ -14,14 +15,20 @@ export const EnumMember = stc(base.EnumMember);
|
|
|
14
15
|
export const ExportStatement = stc(base.ExportStatement);
|
|
15
16
|
export const FunctionCallExpression = stc(base.FunctionCallExpression);
|
|
16
17
|
export const FunctionDeclaration = stc(base.FunctionDeclaration);
|
|
18
|
+
export const FunctionExpression = stc(base.FunctionExpression);
|
|
19
|
+
export const IfStatement = stc(base.IfStatement);
|
|
20
|
+
export const ElseClause = stc(base.ElseClause);
|
|
21
|
+
export const ElseIfClause = stc(base.ElseIfClause);
|
|
17
22
|
export const ImportStatement = stc(base.ImportStatement);
|
|
18
23
|
export const ImportStatements = stc(base.ImportStatements);
|
|
19
24
|
export const InterfaceDeclaration = stc(base.InterfaceDeclaration);
|
|
20
25
|
export const InterfaceExpression = stc(base.InterfaceExpression);
|
|
21
26
|
export const InterfaceMember = stc(base.InterfaceMember);
|
|
27
|
+
export const InterfaceMethod = stc(base.InterfaceMethod);
|
|
22
28
|
export const JSDoc = stc(base.JSDoc);
|
|
23
29
|
export const JSDocExample = stc(base.JSDocExample);
|
|
24
30
|
export const JSDocComment = stc(base.JSDocComment);
|
|
31
|
+
export const MemberExpression = stc(base.MemberExpression);
|
|
25
32
|
export const MemberChainExpression = stc(base.MemberChainExpression);
|
|
26
33
|
export const ObjectExpression = stc(base.ObjectExpression);
|
|
27
34
|
export const ObjectProperty = stc(base.ObjectProperty);
|
|
@@ -32,7 +39,7 @@ export const SourceFile = stc(base.SourceFile);
|
|
|
32
39
|
export const SwitchStatement = stc(base.SwitchStatement);
|
|
33
40
|
export const CaseClause = stc(base.CaseClause);
|
|
34
41
|
export const TSConfigJson = stc(base.TSConfigJson);
|
|
42
|
+
export const FunctionType = stc(base.FunctionType);
|
|
35
43
|
export const TypeDeclaration = stc(base.TypeDeclaration);
|
|
36
44
|
export const ValueExpression = stc(base.ValueExpression);
|
|
37
|
-
export const VarDeclaration = stc(base.VarDeclaration);
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
45
|
+
export const VarDeclaration = stc(base.VarDeclaration);
|
package/dist/src/index.js
CHANGED
package/dist/src/name-policy.js
CHANGED
|
@@ -1,36 +1,46 @@
|
|
|
1
1
|
import { Children, Refkey } from "@alloy-js/core";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Common properties for ParameterDescriptor and FunctionTypeParameterDescriptor.
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ParameterDescriptorBase {
|
|
6
6
|
/**
|
|
7
7
|
* The name of the parameter.
|
|
8
8
|
*/
|
|
9
|
-
name: string;
|
|
9
|
+
readonly name: string;
|
|
10
10
|
/**
|
|
11
11
|
* The type of the parameter.
|
|
12
12
|
*/
|
|
13
|
-
type?: Children;
|
|
14
|
-
/**
|
|
15
|
-
* The default value of the parameter.
|
|
16
|
-
*/
|
|
17
|
-
default?: Children;
|
|
13
|
+
readonly type?: Children;
|
|
18
14
|
/**
|
|
19
15
|
* The refkey for this parameter.
|
|
20
16
|
*/
|
|
21
|
-
refkey?: Refkey | Refkey[];
|
|
17
|
+
readonly refkey?: Refkey | Refkey[];
|
|
22
18
|
/**
|
|
23
19
|
* Whether the parameter is optional.
|
|
24
20
|
*/
|
|
25
|
-
optional?: boolean;
|
|
21
|
+
readonly optional?: boolean;
|
|
26
22
|
/**
|
|
27
23
|
* Arbitrary metadata for the parameter symbol.
|
|
28
24
|
*/
|
|
29
|
-
metadata?: Record<string, unknown>;
|
|
25
|
+
readonly metadata?: Record<string, unknown>;
|
|
30
26
|
/**
|
|
31
27
|
* Documentation for the parameter.
|
|
32
28
|
*/
|
|
33
|
-
doc?: Children;
|
|
29
|
+
readonly doc?: Children;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Information for a TypeScript function parameter.
|
|
33
|
+
*/
|
|
34
|
+
export interface ParameterDescriptor extends ParameterDescriptorBase {
|
|
35
|
+
/**
|
|
36
|
+
* The default value of the parameter.
|
|
37
|
+
*/
|
|
38
|
+
readonly default?: Children;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Information for a TypeScript type function parameter.
|
|
42
|
+
*/
|
|
43
|
+
export interface FunctionTypeParameterDescriptor extends ParameterDescriptorBase {
|
|
34
44
|
}
|
|
35
45
|
/**
|
|
36
46
|
* Information for a TypeScript generic type parameter.
|
|
@@ -39,22 +49,22 @@ export interface TypeParameterDescriptor {
|
|
|
39
49
|
/**
|
|
40
50
|
* The name of the type parameter.
|
|
41
51
|
*/
|
|
42
|
-
name: string;
|
|
52
|
+
readonly name: string;
|
|
43
53
|
/**
|
|
44
54
|
* The extends constraint for the type parameter.
|
|
45
55
|
*/
|
|
46
|
-
extends?: Children;
|
|
56
|
+
readonly extends?: Children;
|
|
47
57
|
/**
|
|
48
58
|
* The default type of the type parameter.
|
|
49
59
|
*/
|
|
50
|
-
default?: Children;
|
|
60
|
+
readonly default?: Children;
|
|
51
61
|
/**
|
|
52
62
|
* A refkey or array of refkeys for this type parameter.
|
|
53
63
|
*/
|
|
54
|
-
refkey?: Refkey | Refkey[];
|
|
64
|
+
readonly refkey?: Refkey | Refkey[];
|
|
55
65
|
/**
|
|
56
66
|
* Arbitrary metadata for the type parameter symbol.
|
|
57
67
|
*/
|
|
58
|
-
metadata?: Record<string, unknown>;
|
|
68
|
+
readonly metadata?: Record<string, unknown>;
|
|
59
69
|
}
|
|
60
70
|
//# sourceMappingURL=parameter-descriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-descriptor.d.ts","sourceRoot":"","sources":["../../src/parameter-descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"parameter-descriptor.d.ts","sourceRoot":"","sources":["../../src/parameter-descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IAClE;;OAEG;IACH,QAAQ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