How can I debug a type error with Kubernetes param...
# general
s
How can I debug a type error with Kubernetes parameters? I’m trying to create a DaemonSet and TypeScript is convinced I’m trying to provide an
Output<DaemonSetSpec>
when I’m trying to provide a
DaemonSetSpec
. Normally I’d try assigning to a variable of type
DaemonSetSpec
to get the type error for that, but I don’t see that type exported.
c
@stale-holiday-22431 try this:
Copy code
import * as inputApi from "@pulumi/kubernetes/types/input"

const x: inputApi.apps.v1.DaemonSetSpec;
er.
/types/output
same idea though.
h
If youu have an
Output
type you should use the
apply
method.
spec.apply(spec => { ... })
. Inside the function
s
will have type
DameonSetSpec
.