typescript drives me crazy :confused: what does it...
# general
b
typescript drives me crazy 😕 what does it want??
Copy code
config/gke01-london.ts:6:9 - error TS2322: Type '{ machineType: string; preemptible: boolean; }' is not assignable to type '"nodeConfig"'.

6         nodeConfig: {
          ~~~~~~~~~~

  node_modules/@pulumi/gcp/container/nodePool.d.ts:312:14
    312     readonly nodeConfig?: pulumi.Input<{
                     ~~~~~~~~~~
    The expected type comes from property 'nodeConfig' which is declared here on type 'NodePoolConfigArgs'
all I wanted is to check that provided config matches NodePoolArgs. Everything in
'NodePoolConfigArgs["nodeConfig"]'
is optional, yet even
{}
cannot be assigned to it.
l
think u probably missing some non optional args and need to define every property from nodeConfig that doesn't have a
?
after it's name
✔️ 1
o
Can you share your code?