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 May 2, 2021. It is now read-only.
The first issue. If there external modules (for ex: node_modules) which ends with index.d.ts then all files will be written as index.d.ts.
How to import node_modules so we can use them?
The second issue. Client.d.ts which was generated by tsc
import Discord from "discord.js";
export declare class Client extends Discord.Client { /* ...code */}
When I use dts-builder in generated declaration file my-module-name.d.ts there's no import Discord from "discord.js"; so Client class has any type
How to solve this?
The text was updated successfully, but these errors were encountered:
Code:
The first issue. If there external modules (for ex: node_modules) which ends with
index.d.ts
then all files will be written asindex.d.ts
.How to import node_modules so we can use them?
The second issue.
Client.d.ts
which was generated bytsc
When I use
dts-builder
in generated declaration filemy-module-name.d.ts
there's noimport Discord from "discord.js";
soClient
class has any typeHow to solve this?
The text was updated successfully, but these errors were encountered: