sparse-intern-71089
09/10/2019, 6:16 PMcool-egg-852
09/10/2019, 7:00 PMquiet-wolf-18467
quiet-wolf-18467
cool-egg-852
09/10/2019, 7:03 PMquiet-wolf-18467
quiet-wolf-18467
cool-egg-852
09/10/2019, 7:03 PMcool-egg-852
09/10/2019, 7:04 PMclever-sunset-76585
09/10/2019, 7:22 PMaccessConfigs
is undefined
by doing something like this:
if (!computeInstance.networkInterfaces[0].accessConfigs) {
// Do something when it doesn't have a value. Maybe throw an error?
}
That should get rid of the IDE warning that it could be undefined
. The other thing you could do is use the assertion operation !
like this: computeInstance.networkInterfaces[0].accessConfigs[0]!.natIp
, but this is not really recommended unless you know for sure that it cannot be undefined/null ever.quiet-wolf-18467