developit / developit/preact-markup

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

未关闭
#50 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
207
派生
27
PR 合并指标
30 天内没有已合并 PR

描述

The index.d.ts file declaring `class Markup extends Component...` (line 26) should read
`declare class Markup extends Component...`

Otherwise the newer versions of TS will complain.

PR #47 will resolve this.

贡献指南

这个仓库没有索引到贡献指南

调研方向

打开 index.d.ts,检查第 26 行的顶层类声明。添加 issue 中描述的必需修饰符,然后验证较新的 TypeScript 版本不再报告 TS1046;注意,issue 说明 PR #47 将解决此问题。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, typescript
领域
frontend
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。