Skip to content
New issue

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

TypeScript Error: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier. #5

Open
scottpage opened this issue Nov 14, 2024 · 0 comments

Comments

@scottpage
Copy link

You're missing a declare statement before the class Client_Libsql extends Knex.Client {} declaration in index.d.ts declaration file.

It's causing errors in my application when tsc attempts to transpile it.
I'm not going to set tsconfig.json skipLibCheck to true, which I've seen others suggest, since I need my declaration files to be validated during build and that option disables checking of those files.

Thank you,
Scott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant