Skip to content

Conversation

@bwateratmsft
Copy link
Contributor

No description provided.

@bwateratmsft bwateratmsft requested a review from a team as a code owner December 4, 2025 19:56
@bwateratmsft bwateratmsft marked this pull request as draft December 4, 2025 20:27
Comment on lines +20 to +24
class ExtendedEnvironment extends azureEnv.Environment {
public constructor(parameters: azureEnv.EnvironmentParameters, public readonly isCustomCloud: boolean) {
super(parameters);
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue here is that azureEnv.Environment is a class, not an interface--so when we were doing ...azureEnv.Environment.SomeCloud, it was taking the prototype information away. Not ideal.

Making an extended class allows us to include the isCustomCloud property, and somewhat simplify the code below at the same time.

@bwateratmsft bwateratmsft marked this pull request as ready for review December 5, 2025 15:36
@bwateratmsft bwateratmsft enabled auto-merge (squash) December 5, 2025 15:36
@bwateratmsft bwateratmsft merged commit 037f4b4 into main Dec 5, 2025
4 checks passed
@bwateratmsft bwateratmsft deleted the bmw/authV6-eng branch December 5, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants