Typescript Noob question alert :rotating_light: lo...
# typescript
b
Typescript Noob question alert 🚨 lol I'm making little progress on self teaching the practical difference between type
Output<string>
and
string
. In this case, I want to do:
Copy code
const name: string = pulumi.concat(["kc2-", stack]);
But obviously that does not work due to error:
Copy code
Type 'Output<string>' is not assignable to type 'string'.
How do I remediate this?
l
In this case, since
name
is used as an input to another Pulumi resource, the fix is as simple as
Copy code
const name: pulumi.Output<string> = pulumi.concat(["kc2-", stack]);