Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-complete not working with Custom-tagged union data type #15829

Open
Dylan-Prins opened this issue Dec 10, 2024 · 0 comments
Open

Auto-complete not working with Custom-tagged union data type #15829

Dylan-Prins opened this issue Dec 10, 2024 · 0 comments
Assignees

Comments

@Dylan-Prins
Copy link

@discriminator('type')
type virtualNetwork = existingVirtualNetwork | newVirtualNetwork

type existingVirtualNetwork = {
  type: 'existing'
  virtualNetworkId: string
  nextHopIpAddress: string?
}

type newVirtualNetwork = {
  type: 'new'
  customName: string?
  customVirtualNetworkPeeringName: string?
  addressSpace: string[]
  dnsServers: string[]?
  existingVirtulNetworkHubId: string?
  nextHopIpAddress: string?
}

param virtualNetwork = {
  type: 'new'
  addressSpace: [
    '10.10.0.0/16'
  ]
  
}

I expect dat ik kan use complete when filling in the property, but it does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

3 participants