This message was deleted.
s
This message was deleted.
l
f
How do I pass a generic along the way?
I got a test scenario working. Now the question is how to make the compiler happy...
Specially, calling
getOutput
on a exported array will be read in as an array. Verified with this code:
Copy code
const subnetIds = infra.getOutput("subnetIds")

subnetIds.apply(x => {
    console.log(Array.isArray(x))
});
The type error I'm getting is "Type 'UnwrappedArray<string>' is not assignable to type 'Input<string>'.ype 'UnwrappedArray<string>' is not assignable to type 'Input<string>'."
Geez, ignore all this... It's been a while since I've written TS.