limited-rainbow-51650
02/03/2020, 10:56 PMservice/index.ts
has:
export interface DatabaseOptions {
...
}
export class Service extends pulumi.ComponentResource {
...
}
The main index.ts
file, I has:
import * as backend from "./service";
const dbArgs = new backend.DatabaseOptions({
...
})
But I get an error on `DatabaseOptions`:
error: Running program '/Users/ringods/Projects/devops-sessions/pulumi/backend' failed with an unhandled exception:
TSError: ⨯ Unable to compile TypeScript:
index.ts(13,28): error TS2339: Property 'DatabaseOptions' does not exist on type 'typeof import(/Users/ringods/Projects/devops-sessions/pulumi/backend/service/index")'.
What am I missing here?microscopic-pilot-97530
02/03/2020, 11:28 PMnew backend.DatabaseOptions
, but DatabaseOptions
is just an interface, not a class.const dbArgs: backend.DatabaseOptions = { ... };