You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
importR6API,{constants,typings,utils/* , fetch */}from"r6api.js"// error for fetch importconsole.log("R6API",R6API.toString(),R6API.default?.toString())console.log("constants",constants.toString())console.log("typings",typings.toString())console.log("utils",utils.toString())// console.log("fetch", fetch.toString())
node test.js
First string will be R6API [object Object] class R6API { ... }. R6API is not a class. R6API is already a default import, so R6API.default type is any causing a TS error.
I'm using r6api.js as ES Module
That prevents proper usage with TypeScript. Declarations have correct default export. ES6 usage from README works only with transpiler.
The text was updated successfully, but these errors were encountered: