You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using union() to specify property defaults for a resource, but then selectively overriding/adding additional, intellisense should still be able to infer the property types and offer completions within this context.
The text was updated successfully, but these errors were encountered:
This should be relatively simple to implement by adding a .WithDynamicReturnType() definition here. Just need to be careful to match ARM's behavior (e.g. in cases where both objects contain the same key), and to handle merging complex types such as any, objects containing additionalProperties, and discriminated objects in a sane way (or just fall back to returning object).
The logic for merging the two objects will also be similar to what we need to do to offer property name completions on array literals. I'd like to tackle it then.
Is your feature request related to a problem? Please describe.
When using
union()
to specify property defaults for a resource, but then selectively overriding/adding additional, intellisense should still be able to infer the property types and offer completions within this context.The text was updated successfully, but these errors were encountered: