Skip to content

Commit 49b3d29

Browse files
Integration: Uptake changes for witemple-msft/extern-fn (#3865)
This is an integration PR for changes related to microsoft/typespec#9060 ([compiler] Functions, reborn). - TCGC: loosened an exhaustiveness check around Value kinds in `getValueTypeValue`. - Generally: regenerated `generated-defs` which now exports decorators as `_decs` rather than `_` and will generate function definitions if any are declared.
1 parent 4806200 commit 49b3d29

File tree

11 files changed

+23
-10
lines changed

11 files changed

+23
-10
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@azure-tools/typespec-autorest"
5+
- "@azure-tools/typespec-azure-core"
6+
- "@azure-tools/typespec-azure-resource-manager"
7+
- "@azure-tools/typespec-client-generator-core"
8+
---
9+
10+
Uptake changes for TypeSpec functions:
11+
12+
- Regenerated `generated-defs` signatures.
13+
- Updated any exhaustive checks that are invalidated by the introduction of `FunctionValue`.

core

Submodule core updated 59 files

packages/typespec-autorest/generated-defs/Autorest.ts-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import type { AutorestDecorators } from "./Autorest.js";
77
/**
88
* An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
99
*/
10-
const _: AutorestDecorators = $decorators["Autorest"];
10+
const _decs: AutorestDecorators = $decorators["Autorest"];

packages/typespec-azure-core/generated-defs/Azure.Core.Foundations.ts-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import type { AzureCoreFoundationsDecorators } from "./Azure.Core.Foundations.js
77
/**
88
* An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
99
*/
10-
const _: AzureCoreFoundationsDecorators = $decorators["Azure.Core.Foundations"];
10+
const _decs: AzureCoreFoundationsDecorators = $decorators["Azure.Core.Foundations"];

packages/typespec-azure-core/generated-defs/Azure.Core.Traits.ts-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import type { AzureCoreTraitsDecorators } from "./Azure.Core.Traits.js";
77
/**
88
* An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
99
*/
10-
const _: AzureCoreTraitsDecorators = $decorators["Azure.Core.Traits"];
10+
const _decs: AzureCoreTraitsDecorators = $decorators["Azure.Core.Traits"];

packages/typespec-azure-core/generated-defs/Azure.Core.ts-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import type { AzureCoreDecorators } from "./Azure.Core.js";
77
/**
88
* An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
99
*/
10-
const _: AzureCoreDecorators = $decorators["Azure.Core"];
10+
const _decs: AzureCoreDecorators = $decorators["Azure.Core"];

packages/typespec-azure-resource-manager/generated-defs/Azure.ResourceManager.Legacy.ts-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import type { AzureResourceManagerLegacyDecorators } from "./Azure.ResourceManag
77
/**
88
* An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
99
*/
10-
const _: AzureResourceManagerLegacyDecorators = $decorators["Azure.ResourceManager.Legacy"];
10+
const _decs: AzureResourceManagerLegacyDecorators = $decorators["Azure.ResourceManager.Legacy"];

packages/typespec-azure-resource-manager/generated-defs/Azure.ResourceManager.ts-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import type { AzureResourceManagerDecorators } from "./Azure.ResourceManager.js"
77
/**
88
* An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
99
*/
10-
const _: AzureResourceManagerDecorators = $decorators["Azure.ResourceManager"];
10+
const _decs: AzureResourceManagerDecorators = $decorators["Azure.ResourceManager"];

packages/typespec-client-generator-core/generated-defs/Azure.ClientGenerator.Core.Legacy.ts-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import type { AzureClientGeneratorCoreLegacyDecorators } from "./Azure.ClientGen
77
/**
88
* An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
99
*/
10-
const _: AzureClientGeneratorCoreLegacyDecorators =
10+
const _decs: AzureClientGeneratorCoreLegacyDecorators =
1111
$decorators["Azure.ClientGenerator.Core.Legacy"];

packages/typespec-client-generator-core/generated-defs/Azure.ClientGenerator.Core.ts-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import type { AzureClientGeneratorCoreDecorators } from "./Azure.ClientGenerator
77
/**
88
* An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
99
*/
10-
const _: AzureClientGeneratorCoreDecorators = $decorators["Azure.ClientGenerator.Core"];
10+
const _decs: AzureClientGeneratorCoreDecorators = $decorators["Azure.ClientGenerator.Core"];

0 commit comments

Comments
 (0)