TypeScript Error: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- tooling
调研方向
打开 index.d.ts,检查 tsc 报告的顶层 Client_Libsql 声明。使用 TypeScript 验证该声明,但不要启用 tsconfig.json 的 skipLibCheck 选项;当报告的修饰符错误消失,同时声明文件仍会被检查时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- JavaScript
- 星标
- 11
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
libsql/knex-libsql 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 52/100
libsql/knex-libsql#4 ·
-
难度 4/5 3-5 天 新手友好度 35/100
libsql/knex-libsql#3 · 6 条评论 · 2 个 reaction ·
-
enhancement question
难度 5/5 一周以上 新手友好度 25/100
libsql/knex-libsql#2 · 1 个 reaction ·
查看 libsql/knex-libsql 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id 未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
nightscout/nocturne#1414 ·
-
bug v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 条评论 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
难度 2/5 1-3 小时 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·