libsql / libsql/knex-libsql

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

Open
#5 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11
Forks
0
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.