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
To make the import work with other "module" and "moduleResolution" settings, a index.d.cts file would be required in "lib/" This file can be a copy of the current index.d.ts file, and maybe it could be created in the "prepublishOnly" script.
The reason why a separate index.d.cts file is required seems to be related to this open issue in typescript: microsoft/TypeScript#52363
The text was updated successfully, but these errors were encountered:
Currently using node-datachannel in a CommonJS typescript projects requires using very specific tsconfig settings in the importing project, namely:
To make the import work with other "module" and "moduleResolution" settings, a index.d.cts file would be required in "lib/" This file can be a copy of the current index.d.ts file, and maybe it could be created in the "prepublishOnly" script.
The reason why a separate index.d.cts file is required seems to be related to this open issue in typescript: microsoft/TypeScript#52363
The text was updated successfully, but these errors were encountered: