-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #15183 This PR adds two new utility types (`resourceInput<>` and `resourceOutput<>`) and deprecates the existing `resource<>` utility types. These three utility types are all closely related but differ in which property flags they surface: - `resource<>` has the flags that were originally defined in the RP types artifact. This is generally not what people want. - `resourceInput<>` strips out all `WriteOnly` flags. This means that template authors can access properties on a `resourceInput<>`-typed parameter that would have previously raised a BCP077 diagnostic. - `resourceOutput<>` strips out all `ReadOnly` flags. Additionally, this PR allows the assignment of one `ReadOnly` property to another `ReadOnly` property without raising any BCP073 diagnostics. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/15825)
- Loading branch information
Showing
47 changed files
with
2,085 additions
and
1,499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.