This message was deleted.
# typescript
s
This message was deleted.
m
Hi @icy-london-58403, there are a couple ways to address this. One way is to add definite assignment assertions to each property. https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#definite-assignment-assertions Adding an exclamation point after the property names like:
Copy code
public readonly endpoint!: pulumi.Output<string>
    public readonly token!: pulumi.Output<string>
    public readonly description!: pulumi.Output<string>
Another way would be to set
strictPropertyInitialization
to
false
in
tsconfig.json
.
We need to update our example in the documentation. It was written before more recent versions of TypeScript got stricter about this by default.
i
thanks let me give some of this a try
this worked. Thank you @microscopic-pilot-97530
🎉 1