crooked-jelly-50877
09/11/2019, 8:42 PMexport const nginxControllerChart = new ingressController.NginxIngressController( nginxValues );
gorgeous-egg-16927
09/11/2019, 8:51 PMlet
. I did that in this example: https://github.com/pulumi/examples/blob/master/kubernetes-ts-multicloud/index.ts#L48-L63crooked-jelly-50877
09/11/2019, 8:51 PMundefined
?clever-sunset-76585
09/11/2019, 8:57 PMand the variable would be initialized asYou could also do?undefined
let x: SomeType | undefined
that allows x
to be undefined sometimes. But that means, wherever you use x
, you will need to make sure that it is not undefined
before you use it.crooked-jelly-50877
09/11/2019, 8:58 PM