https://pulumi.com logo
#general
Title
# general
s

stale-holiday-22431

10/25/2018, 5:42 PM
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

creamy-potato-29402

10/25/2018, 5:51 PM
@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

hundreds-musician-51496

10/25/2018, 6:12 PM
If youu have an
Output
type you should use the
apply
method.
spec.apply(spec => { ... })
. Inside the function
s
will have type
DameonSetSpec
.