Skip to content

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

@Dylan-Prins

Description

@Dylan-Prins
@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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions