TypeScript Error: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- tooling
Research direction
Open index.d.ts and inspect the top-level Client_Libsql declaration that tsc reports. Validate the declaration with TypeScript without enabling tsconfig.json's skipLibCheck option; done means the reported modifier error is gone while declaration files remain checked.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 11
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libsql/knex-libsql
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
libsql/knex-libsql#4 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
libsql/knex-libsql#3 · 6 comments · 2 reactions ·
-
enhancement question
Difficulty 5/5 Over a week Newbie friendliness 25/100
libsql/knex-libsql#2 · 1 reaction ·
All issues in libsql/knex-libsql
Similar issues
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AllTheMods/ATM-10-L#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SignalK/n2k-signalk#345 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·