This repository was archived by the owner on Feb 7, 2024. It is now read-only.
R6API class is under double default export #67
Closed
Description
I'm using r6api.js as ES Module
PS C:\Users\NO_RUSSIAN_SYMBOLS\Projects\temp> node
Welcome to Node.js v16.3.0.
Type ".help" for more information.
> import("r6api.js").then(m => r6api = m)
Promise { <pending> }
> r6api.default.default
[class R6API]
That prevents proper usage with TypeScript. Declarations have correct default export. ES6 usage from README works only with transpiler.
Metadata
Metadata
Assignees
Labels
No labels