Describe the bug
Curernt beta SDK with TypeScript 5.2.2 under Deno (tho it should be the same with Node?..) gives This expression is not constructable.
To Reproduce
import Nylas from 'npm:nylas@7.0.0-beta.3'
const nylas = new Nylas({apiKey: Deno.env.get('NYLAS_API_KEY')!})
Expected behavior
No error.
SDK Version:
7.0.0-beta.3
Additional context
This weird way seems to work:
import {default as Nylas} from 'npm:nylas@7.0.0-beta.3'
const nylas = new Nylas.default({apiKey: Deno.env.get('NYLAS_API_KEY')!})
Describe the bug Curernt beta SDK with TypeScript 5.2.2 under Deno (tho it should be the same with Node?..) gives
This expression is not constructable.
To Reproduce
Expected behavior No error.
SDK Version: 7.0.0-beta.3
Additional context This weird way seems to work: