Skip to content

Commit

Permalink
Use declare keyword in TS example for dynamic resource outputs.
Browse files Browse the repository at this point in the history
Per: #11639 and #13132 ... this should be using `declare`.
  • Loading branch information
thoward authored Oct 17, 2024
1 parent e20f618 commit 2f49a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/docs/iac/concepts/resources/dynamic-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ class MyResourceProvider implements pulumi.dynamic.ResourceProvider {
}

export class MyResource extends pulumi.dynamic.Resource {
public readonly myStringOutput!: pulumi.Output<string>;
public readonly myNumberOutput!: pulumi.Output<number>;
declare readonly myStringOutput!: pulumi.Output<string>;
declare readonly myNumberOutput!: pulumi.Output<number>;

constructor(name: string, props: MyResourceInputs, opts?: pulumi.CustomResourceOptions) {
super(new MyResourceProvider(), name, { myStringOutput: undefined, myNumberOutput: undefined, ...props }, opts);
Expand Down

0 comments on commit 2f49a0c

Please sign in to comment.