This message was deleted.
# general
s
This message was deleted.
b
Works with
pulumi.Unwrap
, but IMHO it should be needed:
Copy code
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const x = {} as pulumi.Unwrap<gcp.container.NodePoolArgs>["nodeConfig"]["labels"];
Hm, Unwrap helps reproducer, but actual code still fails when it is part of a whole project compilation, WTF? compiling just a file:
Copy code
$ node_modules/.bin/tsc --noEmit   nodepool.ts
# no errror
Compiling whole project:
Copy code
$ node_modules/.bin/tsc --noEmit

nodepools.ts:37:111 - error TS2339: Property 'labels' does not exist on type 'UnwrappedObject<{ diskSizeGb?: ...