How do I convert `pulumi.Output<any>` to `pu...
# typescript
p
How do I convert
pulumi.Output<any>
to
pulumi.Output<string>
when getting an output from a
StackReference
?
Copy code
const infra = new pulumi.StackReference(`infra`);
const dbUser = infra.getOutput("dbUser"); // is of type pulumi.Output<any> but should be pulumi.Output<string>
do I really have to do this?:
Copy code
const dbUser = infra.getOutput("dbUser") as pulumi.Output<string>;
b
yes, you have 😉
only you can know the real type
p
ok, thanks!