Skip to content

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

@scottpage

Description

@scottpage

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions