@typespec/tspd 0.74.0-dev.1 → 0.74.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/gen-extern-signatures/components/decorator-signature-type.d.ts +1 -1
- package/dist/src/gen-extern-signatures/components/decorator-signature-type.d.ts.map +1 -1
- package/dist/src/gen-extern-signatures/gen-extern-signatures.js +2 -2
- package/dist/src/gen-extern-signatures/gen-extern-signatures.js.map +1 -1
- package/package.json +5 -5
|
@@ -8,7 +8,7 @@ export declare function DecoratorSignatureType(props: Readonly<DecoratorSignatur
|
|
|
8
8
|
export interface ParameterTsTypeProps {
|
|
9
9
|
constraint: MixedParameterConstraint;
|
|
10
10
|
}
|
|
11
|
-
export declare function ParameterTsType({ constraint }: ParameterTsTypeProps): string | number | boolean | void | import("@alloy-js/core").
|
|
11
|
+
export declare function ParameterTsType({ constraint }: ParameterTsTypeProps): string | number | boolean | void | import("@alloy-js/core").RenderableObject | import("@alloy-js/core").RefkeyableObject | (() => import("@alloy-js/core").Children) | import("@alloy-js/core").Ref<any, any> | import("@alloy-js/core").CustomContext | import("@alloy-js/core").IndentIntrinsicElement | import("@alloy-js/core").IndentIfBreakIntrinsicElement | import("@alloy-js/core").BrIntrinsicElement | import("@alloy-js/core").LineIntrinsicElement | import("@alloy-js/core").HbrIntrinsicElement | import("@alloy-js/core").HardlineIntrinsicElement | import("@alloy-js/core").SbrIntrinsicElement | import("@alloy-js/core").SoftlineIntrinsicElement | import("@alloy-js/core").GroupIntrinsicElement | import("@alloy-js/core").AlignIntrinsicElement | import("@alloy-js/core").FillIntrinsicElement | import("@alloy-js/core").BreakParentIntrinsicElement | import("@alloy-js/core").LineSuffixIntrinsicElement | import("@alloy-js/core").LineSuffixBoundaryIntrinsicElement | import("@alloy-js/core").DedentIntrinsicElement | import("@alloy-js/core").LiterallineIntrinsicElement | import("@alloy-js/core").LbrIntrinsicElement | import("@alloy-js/core").DedentToRootIntrinsicElement | import("@alloy-js/core").MarkAsRootIntrinsicElement | import("@alloy-js/core").IfBreakIntrinsicElement | import("@alloy-js/core").Children[] | null;
|
|
12
12
|
export declare function ValueOfModelTsInterfaceBody({ model }: {
|
|
13
13
|
model: Model;
|
|
14
14
|
}): import("@alloy-js/core").Children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator-signature-type.d.ts","sourceRoot":"","sources":["../../../../src/gen-extern-signatures/components/decorator-signature-type.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,wBAAwB,EACxB,KAAK,EAIN,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,kBAAkB,CAAC;CAC/B;AAED,4DAA4D;AAC5D,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,qCAwC9E;AA+BD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,wBAAwB,CAAC;CACtC;AACD,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"decorator-signature-type.d.ts","sourceRoot":"","sources":["../../../../src/gen-extern-signatures/components/decorator-signature-type.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,wBAAwB,EACxB,KAAK,EAIN,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,kBAAkB,CAAC;CAC/B;AAED,4DAA4D;AAC5D,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,qCAwC9E;AA+BD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,wBAAwB,CAAC;CACtC;AACD,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,EAAE,oBAAoB,4yCAiBnE;AAkHD,wBAAgB,2BAA2B,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,qCAsBtE"}
|
|
@@ -38,10 +38,10 @@ export async function generateExternSignatures(host, libraryPath) {
|
|
|
38
38
|
return diagnostics.diagnostics;
|
|
39
39
|
}
|
|
40
40
|
export async function generateExternSignatureForExports(host, libraryPath, pkgJson, exports) {
|
|
41
|
-
const [main
|
|
41
|
+
const [main] = exports;
|
|
42
42
|
const diagnostics = createDiagnosticCollector();
|
|
43
43
|
const program = await compile(host, main, {
|
|
44
|
-
additionalImports,
|
|
44
|
+
// additionalImports, See: github.com/microsoft/typespec/issues/8913 -- additional imports are disabled pending further design discussion.
|
|
45
45
|
parseOptions: {
|
|
46
46
|
comments: true,
|
|
47
47
|
docs: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["traverseOutput","compile","createDiagnosticCollector","createSourceFile","getLocationContext","getTypeName","joinPaths","navigateProgram","navigateTypesInNamespace","resolvePath","prettier","createDiagnostic","generateSignatures","createSourceLocation","path","file","pos","end","generateExternSignatures","host","libraryPath","diagnostics","pkgJson","readPackageJson","exports","code","target","exportsMap","key","value","Object","entries","typespec","values","length","pipe","generateExternSignatureForExports","add","messageId","main","
|
|
1
|
+
{"version":3,"names":["traverseOutput","compile","createDiagnosticCollector","createSourceFile","getLocationContext","getTypeName","joinPaths","navigateProgram","navigateTypesInNamespace","resolvePath","prettier","createDiagnostic","generateSignatures","createSourceLocation","path","file","pos","end","generateExternSignatures","host","libraryPath","diagnostics","pkgJson","readPackageJson","exports","code","target","exportsMap","key","value","Object","entries","typespec","values","length","pipe","generateExternSignatureForExports","add","messageId","main","program","parseOptions","comments","docs","prettierConfig","resolveConfig","outDir","rm","recursive","e","mkdirp","files","generateExternDecorators","name","undefined","content","writeFile","readFile","JSON","parse","text","packageName","options","decorators","Map","listener","decorator","dec","type","namespaceName","namespace","decoratorForNamespace","get","set","push","resolveDecoratorSignature","namespaces","skipSubNamespaces","format","formatted","parser","console","error","ns","nsDecorators","output","rawFiles","visitDirectory","visitFile","contents","jsName","slice","typeName","toUpperCase"],"sources":["../../../src/gen-extern-signatures/gen-extern-signatures.ts"],"sourcesContent":[null],"mappings":"AAAA,SAAqBA,cAAc,QAAQ,gBAAgB;AAC3D,SASEC,OAAO,EACPC,yBAAyB,EACzBC,gBAAgB,EAChBC,kBAAkB,EAClBC,WAAW,EACXC,SAAS,EACTC,eAAe,EACfC,wBAAwB,EACxBC,WAAW,QACN,oBAAoB;AAC3B,OAAOC,QAAQ,MAAM,UAAU;AAC/B,SAASC,gBAAgB,QAAQ,mBAAmB;AACpD,SAASC,kBAAkB,QAAQ,uCAAuC;AAG1E,SAASC,oBAAoBA,CAACC,IAAY,EAAkB;EAC1D,OAAO;IAAEC,IAAI,EAAEZ,gBAAgB,CAAC,EAAE,EAAEW,IAAI,CAAC;IAAEE,GAAG,EAAE,CAAC;IAAEC,GAAG,EAAE;EAAE,CAAC;AAC7D;AACA,OAAO,eAAeC,wBAAwBA,CAC5CC,IAAkB,EAClBC,WAAmB,EACa;EAChC,MAAMC,WAAW,GAAGnB,yBAAyB,CAAC,CAAC;EAC/C,MAAMoB,OAAO,GAAG,MAAMC,eAAe,CAACJ,IAAI,EAAEC,WAAW,CAAC;EACxD,IAAI,CAACE,OAAO,CAACE,OAAO,EAAE;IACpB,OAAO,CACLb,gBAAgB,CAAC;MACfc,IAAI,EAAE,iBAAiB;MACvBC,MAAM,EAAEb,oBAAoB,CAACJ,WAAW,CAACW,WAAW,EAAE,cAAc,CAAC;IACvE,CAAC,CAAC,CACH;EACH;EAEA,MAAMO,UAAkC,GAAG,CAAC,CAAC;EAC7C,KAAK,MAAM,CAACC,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACT,OAAO,CAACE,OAAO,CAAC,EAAE;IAC1D,IAAI,OAAOK,KAAK,KAAK,QAAQ,IAAI,UAAU,IAAIA,KAAK,IAAI,OAA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IAAIuE,QAAQ,EAAE;MAC3B,IAAI,UAAU,IAAIvE,IAAI,EAAE;QACtBoC,KAAK,CAACpC,IAAI,CAACD,IAAI,CAAC,GAAG,MAAMgE,MAAM,CAAC/D,IAAI,CAAC0E,QAAQ,CAAC;MAChD;IACF;EACF;EACA,OAAOtC,KAAK;AACd;AAEA,SAASwB,yBAAyBA,CAACT,SAAoB,EAAsB;EAC3E,OAAO;IACLA,SAAS;IACTb,IAAI,EAAEa,SAAS,CAACb,IAAI;IACpBqC,MAAM,EAAE,GAAG,GAAGxB,SAAS,CAACb,IAAI,CAACsC,KAAK,CAAC,CAAC,CAAC;IACrCC,QAAQ,EAAE1B,SAAS,CAACb,IAAI,CAAC,CAAC,CAAC,CAACwC,WAAW,CAAC,CAAC,GAAG3B,SAAS,CAACb,IAAI,CAACsC,KAAK,CAAC,CAAC,CAAC,GAAG;EACxE,CAAC;AACH","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/tspd",
|
|
3
|
-
"version": "0.74.0-dev.
|
|
3
|
+
"version": "0.74.0-dev.3",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for generating TypeSpec docs",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"!dist/test/**"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@alloy-js/core": "^0.
|
|
48
|
-
"@alloy-js/markdown": "^0.
|
|
49
|
-
"@alloy-js/typescript": "^0.
|
|
47
|
+
"@alloy-js/core": "^0.21.0",
|
|
48
|
+
"@alloy-js/markdown": "^0.21.0",
|
|
49
|
+
"@alloy-js/typescript": "^0.21.0",
|
|
50
50
|
"@microsoft/api-extractor": "^7.52.1",
|
|
51
51
|
"@microsoft/api-extractor-model": "^7.30.6",
|
|
52
52
|
"@microsoft/tsdoc": "^0.15.1",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"yargs": "~18.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@alloy-js/cli": "^0.
|
|
63
|
+
"@alloy-js/cli": "^0.21.0",
|
|
64
64
|
"@alloy-js/rollup-plugin": "^0.1.0",
|
|
65
65
|
"@types/node": "~24.9.1",
|
|
66
66
|
"@types/yargs": "~17.0.33",
|