@typespec/compiler 1.13.0-dev.1 → 1.13.0-dev.11
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/manifest.js +2 -2
- package/dist/src/config/config-loader.d.ts.map +1 -1
- package/dist/src/config/config-loader.js +39 -1
- package/dist/src/config/config-loader.js.map +1 -1
- package/dist/src/config/config-schema.d.ts.map +1 -1
- package/dist/src/config/config-schema.js +14 -0
- package/dist/src/config/config-schema.js.map +1 -1
- package/dist/src/config/config-to-options.d.ts.map +1 -1
- package/dist/src/config/config-to-options.js +36 -0
- package/dist/src/config/config-to-options.js.map +1 -1
- package/dist/src/config/types.d.ts +28 -0
- package/dist/src/config/types.d.ts.map +1 -1
- package/dist/src/core/checker.d.ts.map +1 -1
- package/dist/src/core/checker.js +161 -23
- package/dist/src/core/checker.js.map +1 -1
- package/dist/src/core/cli/actions/info.d.ts +2 -0
- package/dist/src/core/cli/actions/info.d.ts.map +1 -1
- package/dist/src/core/cli/actions/info.js +25 -0
- package/dist/src/core/cli/actions/info.js.map +1 -1
- package/dist/src/core/cli/cli.js +2 -2
- package/dist/src/core/cli/cli.js.map +1 -1
- package/dist/src/core/entrypoint-resolution.d.ts.map +1 -1
- package/dist/src/core/entrypoint-resolution.js +7 -0
- package/dist/src/core/entrypoint-resolution.js.map +1 -1
- package/dist/src/core/features.d.ts +15 -0
- package/dist/src/core/features.d.ts.map +1 -0
- package/dist/src/core/features.js +21 -0
- package/dist/src/core/features.js.map +1 -0
- package/dist/src/core/messages.d.ts +94 -7
- package/dist/src/core/messages.d.ts.map +1 -1
- package/dist/src/core/messages.js +32 -1
- package/dist/src/core/messages.js.map +1 -1
- package/dist/src/core/modifiers.d.ts.map +1 -1
- package/dist/src/core/modifiers.js +0 -11
- package/dist/src/core/modifiers.js.map +1 -1
- package/dist/src/init/scaffold.js +16 -11
- package/dist/src/init/scaffold.js.map +1 -1
- package/dist/src/server/completion.js +14 -7
- package/dist/src/server/completion.js.map +1 -1
- package/dist/src/server/entrypoint-resolver.d.ts.map +1 -1
- package/dist/src/server/entrypoint-resolver.js +13 -0
- package/dist/src/server/entrypoint-resolver.js.map +1 -1
- package/dist/src/server/fatal-error.d.ts +5 -0
- package/dist/src/server/fatal-error.d.ts.map +1 -0
- package/dist/src/server/fatal-error.js +24 -0
- package/dist/src/server/fatal-error.js.map +1 -0
- package/dist/src/server/server.js +4 -6
- package/dist/src/server/server.js.map +1 -1
- package/dist/src/server/tspconfig/completion.d.ts.map +1 -1
- package/dist/src/server/tspconfig/completion.js +9 -0
- package/dist/src/server/tspconfig/completion.js.map +1 -1
- package/lib/prototypes.tsp +0 -1
- package/package.json +2 -2
- package/templates/__snapshots__/rest/tspconfig.yaml +10 -8
- package/templates/scaffolding.json +3 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TypeSpecConfig } from "../../../config/types.js";
|
|
1
2
|
import { CompilerHost, Diagnostic } from "../../types.js";
|
|
2
3
|
export interface InfoCliArgs {
|
|
3
4
|
emitter?: string;
|
|
@@ -6,4 +7,5 @@ export interface InfoCliArgs {
|
|
|
6
7
|
* Print the resolved TypeSpec configuration, or emitter options if an emitter is specified.
|
|
7
8
|
*/
|
|
8
9
|
export declare function printInfoAction(host: CompilerHost, args: InfoCliArgs): Promise<readonly Diagnostic[]>;
|
|
10
|
+
export declare function formatCompilerFeatures(config?: TypeSpecConfig): string[];
|
|
9
11
|
//# sourceMappingURL=info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../../src/core/cli/actions/info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../../src/core/cli/actions/info.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG1D,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,WAAW,GAChB,OAAO,CAAC,SAAS,UAAU,EAAE,CAAC,CAsBhC;AAED,wBAAgB,sBAAsB,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,MAAM,EAAE,CAsBxE"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
+
import pc from "picocolors";
|
|
2
3
|
import { fileURLToPath } from "url";
|
|
3
4
|
import { stringify } from "yaml";
|
|
4
5
|
import { loadTypeSpecConfigForPath } from "../../../config/config-loader.js";
|
|
6
|
+
import { compilerFeatureNames, compilerFeatures } from "../../features.js";
|
|
5
7
|
import { printEmitterOptionsAction } from "./info/emitter-options.js";
|
|
6
8
|
/**
|
|
7
9
|
* Print the resolved TypeSpec configuration, or emitter options if an emitter is specified.
|
|
8
10
|
*/
|
|
9
11
|
export async function printInfoAction(host, args) {
|
|
12
|
+
if (args.emitter === "features") {
|
|
13
|
+
const config = await loadTypeSpecConfigForPath(host, process.cwd(), false, true);
|
|
14
|
+
console.log(formatCompilerFeatures(config).join("\n"));
|
|
15
|
+
return config.diagnostics;
|
|
16
|
+
}
|
|
10
17
|
if (args.emitter) {
|
|
11
18
|
return printEmitterOptionsAction(host, args.emitter);
|
|
12
19
|
}
|
|
@@ -20,4 +27,22 @@ export async function printInfoAction(host, args) {
|
|
|
20
27
|
console.log("-----------");
|
|
21
28
|
return config.diagnostics;
|
|
22
29
|
}
|
|
30
|
+
export function formatCompilerFeatures(config) {
|
|
31
|
+
const enabledFeatures = new Set(config?.features ?? []);
|
|
32
|
+
const lines = [];
|
|
33
|
+
lines.push(pc.bold("Compiler Features"));
|
|
34
|
+
lines.push("");
|
|
35
|
+
const statusWidth = "disabled".length;
|
|
36
|
+
const nameWidth = Math.max(...compilerFeatureNames.map((name) => name.length));
|
|
37
|
+
for (const name of compilerFeatureNames) {
|
|
38
|
+
const enabled = enabledFeatures.has(name);
|
|
39
|
+
const status = enabled
|
|
40
|
+
? pc.green("enabled".padEnd(statusWidth))
|
|
41
|
+
: pc.dim("disabled".padEnd(statusWidth));
|
|
42
|
+
const featureName = name.padEnd(nameWidth);
|
|
43
|
+
const description = compilerFeatures[name].description;
|
|
44
|
+
lines.push(` ${status} ${pc.bold(pc.cyan(featureName))} ${description}`);
|
|
45
|
+
}
|
|
46
|
+
return lines;
|
|
47
|
+
}
|
|
23
48
|
//# sourceMappingURL=info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../../src/core/cli/actions/info.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAMtE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,IAAkB,EAClB,IAAiB;IAEjB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,OAAO,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1B,OAAO,CAAC,GAAG,CAAC,WAAW,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEzD,MAAM,MAAM,GAAG,MAAM,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,YAAY,EA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CAAC,IAAI,CAAC,CAAC;QAC1C,MAAM,MAAM,GAAG,OAAO;YACpB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACzC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC3C,MAAM,WAAW,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;QAEvD,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,KAAK,WAAW,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/src/core/cli/cli.js
CHANGED
|
@@ -232,9 +232,9 @@ async function main() {
|
|
|
232
232
|
directory: process.cwd(),
|
|
233
233
|
savePackageManager: args["save-package-manager"],
|
|
234
234
|
})))
|
|
235
|
-
.command("info [emitter]", "Show information about the current TypeSpec compiler, or
|
|
235
|
+
.command("info [emitter]", "Show information about the current TypeSpec compiler, compiler features, or a specific emitter.", (cmd) => {
|
|
236
236
|
return cmd.positional("emitter", {
|
|
237
|
-
description: "The emitter package name to show options for.",
|
|
237
|
+
description: "The emitter package name to show options for, or 'features'.",
|
|
238
238
|
type: "string",
|
|
239
239
|
});
|
|
240
240
|
}, withCliHostAndDiagnostics((host, args) => printInfoAction(host, { emitter: args.emitter })))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/core/cli/cli.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC;IACH,6DAA6D;IAC7D,aAAa;IACb,MAAM,MAAM,CAAC,gCAAgC,CAAC,CAAC;AACjD,CAAC;AAAC,MAAM,CAAC;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2B,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC;AAEH,IAAI,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoint-resolution.d.ts","sourceRoot":"","sources":["../../../src/core/entrypoint-resolution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entrypoint-resolution.d.ts","sourceRoot":"","sources":["../../../src/core/entrypoint-resolution.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;GAIG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,iBAAiB,GAClC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAY7B;AAED,wBAAsB,+BAA+B,CACnD,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,MAAM,EACX,gBAAgB,EAAE,iBAAiB,GAClC,OAAO,CAAC,MAAM,CAAC,CAkBjB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadTypeSpecConfigForPath } from "../config/config-loader.js";
|
|
1
2
|
import { doIO, loadFile } from "../utils/io.js";
|
|
2
3
|
import { resolveTspMain } from "../utils/misc.js";
|
|
3
4
|
import { resolvePath } from "./path-utils.js";
|
|
@@ -20,6 +21,12 @@ export async function resolveTypeSpecEntrypoint(host, path, reportDiagnostic) {
|
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
export async function resolveTypeSpecEntrypointForDir(host, dir, reportDiagnostic) {
|
|
24
|
+
// Check for project tspconfig first
|
|
25
|
+
const config = await loadTypeSpecConfigForPath(host, dir, false, false);
|
|
26
|
+
if (config.kind === "project") {
|
|
27
|
+
const entrypoint = config.entrypoint ?? "main.tsp";
|
|
28
|
+
return resolvePath(dir, entrypoint);
|
|
29
|
+
}
|
|
23
30
|
const pkgJsonPath = resolvePath(dir, "package.json");
|
|
24
31
|
const [pkg] = await loadFile(host, pkgJsonPath, JSON.parse, reportDiagnostic, {
|
|
25
32
|
allowFileNotFound: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoint-resolution.js","sourceRoot":"","sources":["../../../src/core/entrypoint-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,IAAkB,EAClB,IAAY,EACZ,gBAAmC;IAEnC,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;IACvE,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;QAC3B,OAAO,+BAA+B,CAAC,IAAI,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;IAC/E,CAAC;SAAM,CAAC;QACN,OAAO,YAAY,CAAC;IACtB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,IAAkB,EAClB,GAAW,EACX,gBAAmC;IAEnC,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IACrD,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,EAAE,gBAAgB,EAAE;QAC5E,iBAAiB,EAA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G,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACxE,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,UAAU,CAAC;QACnD,OAAO,WAAW,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IACrD,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,EAAE,gBAAgB,EAAE;QAC5E,iBAAiB,EAAE,IAAI;KACxB,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,WAAW,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Program } from "./program.js";
|
|
2
|
+
import type { DiagnosticTarget } from "./types.js";
|
|
3
|
+
export interface CompilerFeatureDefinition {
|
|
4
|
+
readonly description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const compilerFeatures: {
|
|
7
|
+
readonly "function-declarations": {
|
|
8
|
+
readonly description: "Allows use of function declarations without experimental warnings in project code.";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type CompilerFeatureName = keyof typeof compilerFeatures;
|
|
12
|
+
export declare const compilerFeatureNames: CompilerFeatureName[];
|
|
13
|
+
export declare function isCompilerFeatureName(feature: string): feature is CompilerFeatureName;
|
|
14
|
+
export declare function isCompilerFeatureEnabled(program: Program, feature: CompilerFeatureName, target?: DiagnosticTarget): boolean;
|
|
15
|
+
//# sourceMappingURL=features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/core/features.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,gBAAgB;;;;CAKiC,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAEhE,eAAO,MAAM,oBAAoB,EAAoC,mBAAmB,EAAE,CAAC;AAI3F,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,IAAI,mBAAmB,CAErF;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,mBAAmB,EAC5B,MAAM,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAUT"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getLocationContext } from "./helpers/location-context.js";
|
|
2
|
+
export const compilerFeatures = {
|
|
3
|
+
"function-declarations": {
|
|
4
|
+
description: "Allows use of function declarations without experimental warnings in project code.",
|
|
5
|
+
},
|
|
6
|
+
};
|
|
7
|
+
export const compilerFeatureNames = Object.keys(compilerFeatures);
|
|
8
|
+
const compilerFeatureNameSet = new Set(compilerFeatureNames);
|
|
9
|
+
export function isCompilerFeatureName(feature) {
|
|
10
|
+
return compilerFeatureNameSet.has(feature);
|
|
11
|
+
}
|
|
12
|
+
export function isCompilerFeatureEnabled(program, feature, target) {
|
|
13
|
+
if (!program.compilerOptions.configFile?.features?.includes(feature)) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (target === undefined) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
return getLocationContext(program, target).type === "project";
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=features.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../../src/core/features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAQnE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,uBAAuB,EAAE;QACvB,WAAW,EACT,oFAAoF;KACvF;CAC2D,CAAC;AAI/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAA0B,CAAC;AAE3F,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAS,oBAAoB,CAAC,CAAC;AAErE,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,OAA4B,EAC5B,MAAyB;IAEzB,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACrE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC;AAChE,CAAC"}
|
|
@@ -248,7 +248,6 @@ declare const diagnostics: {
|
|
|
248
248
|
readonly messages: {
|
|
249
249
|
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
250
250
|
readonly functionDeclarations: "Function declarations are an experimental feature that may change in the future. Use with caution and consider providing feedback to the TypeSpec team.";
|
|
251
|
-
readonly internal: "Internal symbols are experimental and may be changed in a future release. Use with caution. Suppress this message ('#suppress \"experimental-feature\"') to silence this warning.";
|
|
252
251
|
};
|
|
253
252
|
};
|
|
254
253
|
readonly "using-invalid-ref": {
|
|
@@ -566,6 +565,14 @@ declare const diagnostics: {
|
|
|
566
565
|
readonly default: "Extern declaration must have an implementation in JS file.";
|
|
567
566
|
};
|
|
568
567
|
};
|
|
568
|
+
readonly "missing-extern-declaration": {
|
|
569
|
+
readonly severity: "error";
|
|
570
|
+
readonly description: "Report when a function is registered in $functions in a JS file but has no corresponding `extern fn` declaration in TypeSpec.";
|
|
571
|
+
readonly url: "https://typespec.io/docs/standard-library/diags/missing-extern-declaration";
|
|
572
|
+
readonly messages: {
|
|
573
|
+
readonly default: import("./types.js").CallableMessage<["name"]>;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
569
576
|
readonly "overload-same-parent": {
|
|
570
577
|
readonly severity: "error";
|
|
571
578
|
readonly messages: {
|
|
@@ -630,6 +637,30 @@ declare const diagnostics: {
|
|
|
630
637
|
readonly default: import("./types.js").CallableMessage<["path"]>;
|
|
631
638
|
};
|
|
632
639
|
};
|
|
640
|
+
readonly "config-project-kind-filename": {
|
|
641
|
+
readonly severity: "error";
|
|
642
|
+
readonly messages: {
|
|
643
|
+
readonly default: import("./types.js").CallableMessage<["filename"]>;
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
readonly "config-project-only-option": {
|
|
647
|
+
readonly severity: "error";
|
|
648
|
+
readonly messages: {
|
|
649
|
+
readonly default: import("./types.js").CallableMessage<["option"]>;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
readonly "config-unknown-feature": {
|
|
653
|
+
readonly severity: "error";
|
|
654
|
+
readonly messages: {
|
|
655
|
+
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
readonly "config-project-not-as-cli-config": {
|
|
659
|
+
readonly severity: "error";
|
|
660
|
+
readonly messages: {
|
|
661
|
+
readonly default: "`--config` cannot point to a project config (with `kind: project`). Use a non-project build config that `extends` the project config instead.";
|
|
662
|
+
};
|
|
663
|
+
};
|
|
633
664
|
/**
|
|
634
665
|
* Program
|
|
635
666
|
*/
|
|
@@ -1068,7 +1099,7 @@ declare const diagnostics: {
|
|
|
1068
1099
|
};
|
|
1069
1100
|
};
|
|
1070
1101
|
export type CompilerDiagnostics = TypeOfDiagnostics<typeof diagnostics>;
|
|
1071
|
-
export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "duplicate-import" | "self-import" | "token-expected" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "default-required" | "invalid-template-argument-name" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "experimental-feature" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "incompatible-indexer" | "no-array-properties" | "intersect-duplicate-property" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "spread-object" | "expect-value" | "non-callable" | "named-init-required" | "invalid-primitive-init" | "ambiguous-scalar-type" | "unassignable" | "property-unassignable" | "property-required" | "parameter-required" | "value-in-type" | "no-prop" | "missing-index" | "missing-property" | "unexpected-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "constructor-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "invalid-modifier" | "function-return" | "invalid-value" | "fn-in-union-expression" | "missing-implementation" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-invalid-name" | "path-unix-style" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "mixed-string-template" | "non-literal-string-template" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "js-error" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "invalid-rule-options" | "format-failed" | "invalid-pattern-regex" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "invalid-mime-type" | "no-mime-type-suffix" | "encoded-name-conflict" | "incompatible-paging-props" | "invalid-paging-prop" | "duplicate-paging-prop" | "missing-paging-items" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-constraint" | "circular-op-signature" | "circular-alias-type" | "circular-const" | "circular-prop" | "conflict-marker" | "visibility-sealed" | "default-visibility-not-member" | "operation-visibility-constraint-empty" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path" | "invalid-option-flag", M extends keyof {
|
|
1102
|
+
export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "duplicate-import" | "self-import" | "token-expected" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "default-required" | "invalid-template-argument-name" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "experimental-feature" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "incompatible-indexer" | "no-array-properties" | "intersect-duplicate-property" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "spread-object" | "expect-value" | "non-callable" | "named-init-required" | "invalid-primitive-init" | "ambiguous-scalar-type" | "unassignable" | "property-unassignable" | "property-required" | "parameter-required" | "value-in-type" | "no-prop" | "missing-index" | "missing-property" | "unexpected-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "constructor-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "invalid-modifier" | "function-return" | "invalid-value" | "fn-in-union-expression" | "missing-implementation" | "missing-extern-declaration" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-invalid-name" | "path-unix-style" | "config-path-not-found" | "config-project-kind-filename" | "config-project-only-option" | "config-unknown-feature" | "config-project-not-as-cli-config" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "mixed-string-template" | "non-literal-string-template" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "js-error" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "invalid-rule-options" | "format-failed" | "invalid-pattern-regex" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "invalid-mime-type" | "no-mime-type-suffix" | "encoded-name-conflict" | "incompatible-paging-props" | "invalid-paging-prop" | "duplicate-paging-prop" | "missing-paging-items" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-constraint" | "circular-op-signature" | "circular-alias-type" | "circular-const" | "circular-prop" | "conflict-marker" | "visibility-sealed" | "default-visibility-not-member" | "operation-visibility-constraint-empty" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path" | "invalid-option-flag", M extends keyof {
|
|
1072
1103
|
"digit-expected": {
|
|
1073
1104
|
readonly default: "Digit expected.";
|
|
1074
1105
|
};
|
|
@@ -1192,7 +1223,6 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
1192
1223
|
"experimental-feature": {
|
|
1193
1224
|
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
1194
1225
|
readonly functionDeclarations: "Function declarations are an experimental feature that may change in the future. Use with caution and consider providing feedback to the TypeSpec team.";
|
|
1195
|
-
readonly internal: "Internal symbols are experimental and may be changed in a future release. Use with caution. Suppress this message ('#suppress \"experimental-feature\"') to silence this warning.";
|
|
1196
1226
|
};
|
|
1197
1227
|
"using-invalid-ref": {
|
|
1198
1228
|
readonly default: "Using must refer to a namespace";
|
|
@@ -1371,6 +1401,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
1371
1401
|
"missing-implementation": {
|
|
1372
1402
|
readonly default: "Extern declaration must have an implementation in JS file.";
|
|
1373
1403
|
};
|
|
1404
|
+
"missing-extern-declaration": {
|
|
1405
|
+
readonly default: import("./types.js").CallableMessage<["name"]>;
|
|
1406
|
+
};
|
|
1374
1407
|
"overload-same-parent": {
|
|
1375
1408
|
readonly default: "Overload must be in the same interface or namespace.";
|
|
1376
1409
|
};
|
|
@@ -1402,6 +1435,18 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
1402
1435
|
"config-path-not-found": {
|
|
1403
1436
|
readonly default: import("./types.js").CallableMessage<["path"]>;
|
|
1404
1437
|
};
|
|
1438
|
+
"config-project-kind-filename": {
|
|
1439
|
+
readonly default: import("./types.js").CallableMessage<["filename"]>;
|
|
1440
|
+
};
|
|
1441
|
+
"config-project-only-option": {
|
|
1442
|
+
readonly default: import("./types.js").CallableMessage<["option"]>;
|
|
1443
|
+
};
|
|
1444
|
+
"config-unknown-feature": {
|
|
1445
|
+
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
1446
|
+
};
|
|
1447
|
+
"config-project-not-as-cli-config": {
|
|
1448
|
+
readonly default: "`--config` cannot point to a project config (with `kind: project`). Use a non-project build config that `extends` the project config instead.";
|
|
1449
|
+
};
|
|
1405
1450
|
"dynamic-import": {
|
|
1406
1451
|
readonly default: "Dynamically generated TypeSpec cannot have imports";
|
|
1407
1452
|
};
|
|
@@ -1743,7 +1788,6 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
1743
1788
|
"experimental-feature": {
|
|
1744
1789
|
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
1745
1790
|
readonly functionDeclarations: "Function declarations are an experimental feature that may change in the future. Use with caution and consider providing feedback to the TypeSpec team.";
|
|
1746
|
-
readonly internal: "Internal symbols are experimental and may be changed in a future release. Use with caution. Suppress this message ('#suppress \"experimental-feature\"') to silence this warning.";
|
|
1747
1791
|
};
|
|
1748
1792
|
"using-invalid-ref": {
|
|
1749
1793
|
readonly default: "Using must refer to a namespace";
|
|
@@ -1922,6 +1966,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
1922
1966
|
"missing-implementation": {
|
|
1923
1967
|
readonly default: "Extern declaration must have an implementation in JS file.";
|
|
1924
1968
|
};
|
|
1969
|
+
"missing-extern-declaration": {
|
|
1970
|
+
readonly default: import("./types.js").CallableMessage<["name"]>;
|
|
1971
|
+
};
|
|
1925
1972
|
"overload-same-parent": {
|
|
1926
1973
|
readonly default: "Overload must be in the same interface or namespace.";
|
|
1927
1974
|
};
|
|
@@ -1953,6 +2000,18 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
1953
2000
|
"config-path-not-found": {
|
|
1954
2001
|
readonly default: import("./types.js").CallableMessage<["path"]>;
|
|
1955
2002
|
};
|
|
2003
|
+
"config-project-kind-filename": {
|
|
2004
|
+
readonly default: import("./types.js").CallableMessage<["filename"]>;
|
|
2005
|
+
};
|
|
2006
|
+
"config-project-only-option": {
|
|
2007
|
+
readonly default: import("./types.js").CallableMessage<["option"]>;
|
|
2008
|
+
};
|
|
2009
|
+
"config-unknown-feature": {
|
|
2010
|
+
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
2011
|
+
};
|
|
2012
|
+
"config-project-not-as-cli-config": {
|
|
2013
|
+
readonly default: "`--config` cannot point to a project config (with `kind: project`). Use a non-project build config that `extends` the project config instead.";
|
|
2014
|
+
};
|
|
1956
2015
|
"dynamic-import": {
|
|
1957
2016
|
readonly default: "Dynamically generated TypeSpec cannot have imports";
|
|
1958
2017
|
};
|
|
@@ -2170,7 +2229,7 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
2170
2229
|
"invalid-option-flag": {
|
|
2171
2230
|
readonly default: import("./types.js").CallableMessage<["value"]>;
|
|
2172
2231
|
};
|
|
2173
|
-
}, C, M>) => import("./types.js").Diagnostic, reportDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "duplicate-import" | "self-import" | "token-expected" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "default-required" | "invalid-template-argument-name" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "experimental-feature" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "incompatible-indexer" | "no-array-properties" | "intersect-duplicate-property" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "spread-object" | "expect-value" | "non-callable" | "named-init-required" | "invalid-primitive-init" | "ambiguous-scalar-type" | "unassignable" | "property-unassignable" | "property-required" | "parameter-required" | "value-in-type" | "no-prop" | "missing-index" | "missing-property" | "unexpected-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "constructor-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "invalid-modifier" | "function-return" | "invalid-value" | "fn-in-union-expression" | "missing-implementation" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-invalid-name" | "path-unix-style" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "mixed-string-template" | "non-literal-string-template" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "js-error" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "invalid-rule-options" | "format-failed" | "invalid-pattern-regex" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "invalid-mime-type" | "no-mime-type-suffix" | "encoded-name-conflict" | "incompatible-paging-props" | "invalid-paging-prop" | "duplicate-paging-prop" | "missing-paging-items" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-constraint" | "circular-op-signature" | "circular-alias-type" | "circular-const" | "circular-prop" | "conflict-marker" | "visibility-sealed" | "default-visibility-not-member" | "operation-visibility-constraint-empty" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path" | "invalid-option-flag", M extends keyof {
|
|
2232
|
+
}, C, M>) => import("./types.js").Diagnostic, reportDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "duplicate-import" | "self-import" | "token-expected" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "default-required" | "invalid-template-argument-name" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "experimental-feature" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "incompatible-indexer" | "no-array-properties" | "intersect-duplicate-property" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "spread-object" | "expect-value" | "non-callable" | "named-init-required" | "invalid-primitive-init" | "ambiguous-scalar-type" | "unassignable" | "property-unassignable" | "property-required" | "parameter-required" | "value-in-type" | "no-prop" | "missing-index" | "missing-property" | "unexpected-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "constructor-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "invalid-modifier" | "function-return" | "invalid-value" | "fn-in-union-expression" | "missing-implementation" | "missing-extern-declaration" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-invalid-name" | "path-unix-style" | "config-path-not-found" | "config-project-kind-filename" | "config-project-only-option" | "config-unknown-feature" | "config-project-not-as-cli-config" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "mixed-string-template" | "non-literal-string-template" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "js-error" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "invalid-rule-options" | "format-failed" | "invalid-pattern-regex" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "invalid-mime-type" | "no-mime-type-suffix" | "encoded-name-conflict" | "incompatible-paging-props" | "invalid-paging-prop" | "duplicate-paging-prop" | "missing-paging-items" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-constraint" | "circular-op-signature" | "circular-alias-type" | "circular-const" | "circular-prop" | "conflict-marker" | "visibility-sealed" | "default-visibility-not-member" | "operation-visibility-constraint-empty" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path" | "invalid-option-flag", M extends keyof {
|
|
2174
2233
|
"digit-expected": {
|
|
2175
2234
|
readonly default: "Digit expected.";
|
|
2176
2235
|
};
|
|
@@ -2294,7 +2353,6 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
2294
2353
|
"experimental-feature": {
|
|
2295
2354
|
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
2296
2355
|
readonly functionDeclarations: "Function declarations are an experimental feature that may change in the future. Use with caution and consider providing feedback to the TypeSpec team.";
|
|
2297
|
-
readonly internal: "Internal symbols are experimental and may be changed in a future release. Use with caution. Suppress this message ('#suppress \"experimental-feature\"') to silence this warning.";
|
|
2298
2356
|
};
|
|
2299
2357
|
"using-invalid-ref": {
|
|
2300
2358
|
readonly default: "Using must refer to a namespace";
|
|
@@ -2473,6 +2531,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
2473
2531
|
"missing-implementation": {
|
|
2474
2532
|
readonly default: "Extern declaration must have an implementation in JS file.";
|
|
2475
2533
|
};
|
|
2534
|
+
"missing-extern-declaration": {
|
|
2535
|
+
readonly default: import("./types.js").CallableMessage<["name"]>;
|
|
2536
|
+
};
|
|
2476
2537
|
"overload-same-parent": {
|
|
2477
2538
|
readonly default: "Overload must be in the same interface or namespace.";
|
|
2478
2539
|
};
|
|
@@ -2504,6 +2565,18 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
2504
2565
|
"config-path-not-found": {
|
|
2505
2566
|
readonly default: import("./types.js").CallableMessage<["path"]>;
|
|
2506
2567
|
};
|
|
2568
|
+
"config-project-kind-filename": {
|
|
2569
|
+
readonly default: import("./types.js").CallableMessage<["filename"]>;
|
|
2570
|
+
};
|
|
2571
|
+
"config-project-only-option": {
|
|
2572
|
+
readonly default: import("./types.js").CallableMessage<["option"]>;
|
|
2573
|
+
};
|
|
2574
|
+
"config-unknown-feature": {
|
|
2575
|
+
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
2576
|
+
};
|
|
2577
|
+
"config-project-not-as-cli-config": {
|
|
2578
|
+
readonly default: "`--config` cannot point to a project config (with `kind: project`). Use a non-project build config that `extends` the project config instead.";
|
|
2579
|
+
};
|
|
2507
2580
|
"dynamic-import": {
|
|
2508
2581
|
readonly default: "Dynamically generated TypeSpec cannot have imports";
|
|
2509
2582
|
};
|
|
@@ -2845,7 +2918,6 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
2845
2918
|
"experimental-feature": {
|
|
2846
2919
|
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
2847
2920
|
readonly functionDeclarations: "Function declarations are an experimental feature that may change in the future. Use with caution and consider providing feedback to the TypeSpec team.";
|
|
2848
|
-
readonly internal: "Internal symbols are experimental and may be changed in a future release. Use with caution. Suppress this message ('#suppress \"experimental-feature\"') to silence this warning.";
|
|
2849
2921
|
};
|
|
2850
2922
|
"using-invalid-ref": {
|
|
2851
2923
|
readonly default: "Using must refer to a namespace";
|
|
@@ -3024,6 +3096,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
3024
3096
|
"missing-implementation": {
|
|
3025
3097
|
readonly default: "Extern declaration must have an implementation in JS file.";
|
|
3026
3098
|
};
|
|
3099
|
+
"missing-extern-declaration": {
|
|
3100
|
+
readonly default: import("./types.js").CallableMessage<["name"]>;
|
|
3101
|
+
};
|
|
3027
3102
|
"overload-same-parent": {
|
|
3028
3103
|
readonly default: "Overload must be in the same interface or namespace.";
|
|
3029
3104
|
};
|
|
@@ -3055,6 +3130,18 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
|
|
|
3055
3130
|
"config-path-not-found": {
|
|
3056
3131
|
readonly default: import("./types.js").CallableMessage<["path"]>;
|
|
3057
3132
|
};
|
|
3133
|
+
"config-project-kind-filename": {
|
|
3134
|
+
readonly default: import("./types.js").CallableMessage<["filename"]>;
|
|
3135
|
+
};
|
|
3136
|
+
"config-project-only-option": {
|
|
3137
|
+
readonly default: import("./types.js").CallableMessage<["option"]>;
|
|
3138
|
+
};
|
|
3139
|
+
"config-unknown-feature": {
|
|
3140
|
+
readonly default: import("./types.js").CallableMessage<["feature"]>;
|
|
3141
|
+
};
|
|
3142
|
+
"config-project-not-as-cli-config": {
|
|
3143
|
+
readonly default: "`--config` cannot point to a project config (with `kind: project`). Use a non-project build config that `extends` the project config instead.";
|
|
3144
|
+
};
|
|
3058
3145
|
"dynamic-import": {
|
|
3059
3146
|
readonly default: "Dynamically generated TypeSpec cannot have imports";
|
|
3060
3147
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/core/messages.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,QAAA,MAAM,WAAW;IACf;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0EH;;OAEG;;;;;;;;;;;;;IAcH;;OAEG;;;;;;;;;;;;;IAcH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkIH;;;OAGG;;;;;;;;;;;IAWH;;OAEG
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/core/messages.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,QAAA,MAAM,WAAW;IACf;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0EH;;OAEG;;;;;;;;;;;;;IAcH;;OAEG;;;;;;;;;;;;;IAcH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkIH;;;OAGG;;;;;;;;;;;IAWH;;OAEG;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyC,CAAC"}
|
|
@@ -250,7 +250,6 @@ const diagnostics = {
|
|
|
250
250
|
messages: {
|
|
251
251
|
default: paramMessage `${"feature"} is an experimental feature. It may change in the future or be removed. Use with caution and consider providing feedback on this feature.`,
|
|
252
252
|
functionDeclarations: "Function declarations are an experimental feature that may change in the future. Use with caution and consider providing feedback to the TypeSpec team.",
|
|
253
|
-
internal: `Internal symbols are experimental and may be changed in a future release. Use with caution. Suppress this message ('#suppress "experimental-feature"') to silence this warning.`,
|
|
254
253
|
},
|
|
255
254
|
},
|
|
256
255
|
"using-invalid-ref": {
|
|
@@ -568,6 +567,14 @@ const diagnostics = {
|
|
|
568
567
|
default: "Extern declaration must have an implementation in JS file.",
|
|
569
568
|
},
|
|
570
569
|
},
|
|
570
|
+
"missing-extern-declaration": {
|
|
571
|
+
severity: "error",
|
|
572
|
+
description: "Report when a function is registered in $functions in a JS file but has no corresponding `extern fn` declaration in TypeSpec.",
|
|
573
|
+
url: "https://typespec.io/docs/standard-library/diags/missing-extern-declaration",
|
|
574
|
+
messages: {
|
|
575
|
+
default: paramMessage `Function implementation "${"name"}" is exported in JS via $functions but has no corresponding 'extern fn' declaration in TypeSpec.`,
|
|
576
|
+
},
|
|
577
|
+
},
|
|
571
578
|
"overload-same-parent": {
|
|
572
579
|
severity: "error",
|
|
573
580
|
messages: {
|
|
@@ -632,6 +639,30 @@ const diagnostics = {
|
|
|
632
639
|
default: paramMessage `No configuration file found at config path "${"path"}".`,
|
|
633
640
|
},
|
|
634
641
|
},
|
|
642
|
+
"config-project-kind-filename": {
|
|
643
|
+
severity: "error",
|
|
644
|
+
messages: {
|
|
645
|
+
default: paramMessage `Config with \`kind: project\` must be named "tspconfig.yaml". Found in "${"filename"}".`,
|
|
646
|
+
},
|
|
647
|
+
},
|
|
648
|
+
"config-project-only-option": {
|
|
649
|
+
severity: "error",
|
|
650
|
+
messages: {
|
|
651
|
+
default: paramMessage `Property "${"option"}" can only be used in a project config (with \`kind: project\`).`,
|
|
652
|
+
},
|
|
653
|
+
},
|
|
654
|
+
"config-unknown-feature": {
|
|
655
|
+
severity: "error",
|
|
656
|
+
messages: {
|
|
657
|
+
default: paramMessage `Unknown compiler feature "${"feature"}".`,
|
|
658
|
+
},
|
|
659
|
+
},
|
|
660
|
+
"config-project-not-as-cli-config": {
|
|
661
|
+
severity: "error",
|
|
662
|
+
messages: {
|
|
663
|
+
default: "`--config` cannot point to a project config (with `kind: project`). Use a non-project build config that `extends` the project config instead.",
|
|
664
|
+
},
|
|
665
|
+
},
|
|
635
666
|
/**
|
|
636
667
|
* Program
|
|
637
668
|
*/
|