important-leather-28796
04/11/2019, 9:21 PMtypes/input
is not accessible. e.g. input.core.v1.Affinity
big-piano-35669
import * as k8sinput from "@pulumi/kubernetes/types/input";
...
const affinity: k8sinput.core.v1.Affinity = ...;
I just tried this and it worked.
I'll admit, I'm not sure why types
isn't exported as a submodule and have always found it a little odd -- @creamy-potato-29402 or @gorgeous-egg-16927, was this intentional? That'd let you write
import * as k8s from "@pulumi/kubernetes";
...
const affinity: k8s.types.input.core.v1.Affinity = ...;
Easy to find when plonking around in your editor.important-leather-28796
04/11/2019, 9:37 PM