Hi, I am trying to extend a pulumi provider resour...
# typescript
b
Hi, I am trying to extend a pulumi provider resource class to include some properties, something like this:
but, of course I am getting circular promises
Copy code
pulumi:pulumi:Stack (azure-sql-us-prod):
    error: Running program '/workspaces/pulumi/projects/azure-sql/src/index.ts' failed with an unhandled exception:
    <ref *1> TypeError: Cannot set property databaseName of #<AzureNativeSqlDatabase> which has only a getter
        at Object.transferProperties (/workspaces/pulumi/node_modules/@pulumi/runtime/rpc.ts:90:23)
        at /workspaces/pulumi/node_modules/@pulumi/runtime/resource.ts:821:23
        at Generator.next (<anonymous>)
        at /workspaces/pulumi/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/workspaces/pulumi/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at prepareResource (/workspaces/pulumi/node_modules/@pulumi/pulumi/runtime/resource.js:489:12)
        at Object.registerResource (/workspaces/pulumi/node_modules/@pulumi/runtime/resource.ts:502:24)
        at new Resource (/workspaces/pulumi/node_modules/@pulumi/resource.ts:557:13)
        at new CustomResource (/workspaces/pulumi/node_modules/@pulumi/resource.ts:1080:9) {
      promise: Promise { <rejected> [Circular *1] }
    }
Is there a correct way/alternative way to do this? I want to avoid the typical helper/util function to extract those parameters