mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
docs: Readme TOC (#37224)
* feat: create README.cn.md * chore: add Chinese README * feat: Switch status badges to Azure Pipelines in README.cn.md * docs: Readme TOC
This commit is contained in:
parent
432e8369f9
commit
33662042fc
15
README.cn.md
15
README.cn.md
@ -6,6 +6,19 @@
|
||||
|
||||
*你可以去看其他语言的 README,[英语](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md),[西班牙语](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.es.md),[韩语](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.ko.md),[俄罗斯语](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.ru.md)*
|
||||
|
||||
## 目录
|
||||
|
||||
* [当前状态](#当前状态)
|
||||
* [我该如何贡献?](#我该如何贡献)
|
||||
* [测试](#测试)
|
||||
* [发起一个 pull request](#发起一个-pull-request)
|
||||
* [编辑一个现有包](#编辑一个现有包)
|
||||
* [创建一个新的包](#创建一个新的包)
|
||||
* [常见错误](#常见错误)
|
||||
* [删除一个包](#删除一个包)
|
||||
* [Lint](#lint)
|
||||
* [FAQ](#faq)
|
||||
|
||||
## 当前状态
|
||||
|
||||
这个部分会跟踪仓库和发布过程的运行状况。
|
||||
@ -139,7 +152,7 @@ Definitely Typed 的成员会定期查看新的 PRs,但是请记住当有许
|
||||
#### 常见错误
|
||||
|
||||
* 首先,请遵循 [手册](http://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html) 的建议。
|
||||
* 格式化:要么全部使用 tabs,要么始终使用 4 个空格。
|
||||
* 格式化:使用4个空格。 对于新代码,这由 Prettier 强制执行。
|
||||
* `function sum(nums: number[]): number`: 如果函数没有写入的参数,请使用 `ReadonlyArray`.
|
||||
* `interface Foo { new(): Foo; }`:
|
||||
这定义了一个可实例化的类型,你可能需要的是 `declare class Foo { constructor(); }`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user