We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I could not find info on this in the documentation nor in the current existing issues.
Does ESBuild support generating a single types.d.ts file when I bundle (with format esm) a index.ts file?
types.d.ts
index.ts
I'm currently using rollup which does it, but I wanna evaluate if I can switch out to esbuild?
an example of a types.d.ts generated by rollup look like the snippet below.
Please note it retains the correct type information as well as the JSDocs.
/** * Returns whether the payload is undefined * * @param {*} payload * @returns {payload is undefined} */ export declare function isUndefined(payload: any): payload is undefined; /** * Returns whether the payload is null * * @param {*} payload * @returns {payload is null} */ export declare function isNull(payload: any): payload is null;
I believe that a types.d.ts file is useful for when other devs use my utils to get autocompletion and popup documentation in their editors.
If this is not possible with esbuild, am I correct to assume that my use case:
is not the target use case for esbuild? I'm keen to know!
The text was updated successfully, but these errors were encountered:
previously I searched for generate types which didn't get good results in the issues, but now I did find the answer here: #95
generate types
Sorry, something went wrong.
No branches or pull requests
I could not find info on this in the documentation nor in the current existing issues.
Does ESBuild support generating a single
types.d.ts
file when I bundle (with format esm) aindex.ts
file?I'm currently using rollup which does it, but I wanna evaluate if I can switch out to esbuild?
an example of a
types.d.ts
generated by rollup look like the snippet below.Please note it retains the correct type information as well as the JSDocs.
I believe that a
types.d.ts
file is useful for when other devs use my utils to get autocompletion and popup documentation in their editors.If this is not possible with esbuild, am I correct to assume that my use case:
is not the target use case for esbuild? I'm keen to know!
The text was updated successfully, but these errors were encountered: