Replies: 1 comment
-
|
@shuaixr it's doable for sure. You just have to specify it as part of your import { defineConfig } from 'tsup'
export default defineConfig((options) => ({
name: "package-name,
entry: ['src/index.tsx'],
format: ["esm"],
bundle: true,
clean: true,
dts: {
footer: "declare module 'knex/types/tables';"
},
})) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use knex to manage mysql connections,knex uses
declare module 'knex/types/tables'to enhance type checking(knex typescript doc)My type definition file is like this:
client.ts
tsc can correctly output type definition files containing
declare module 'knex/types/tables', but tsup can'tBeta Was this translation helpful? Give feedback.
All reactions