typescript-book-chinese icon indicating copy to clipboard operation
typescript-book-chinese copied to clipboard

TypeScript Deep Dive 中文版

Results 56 typescript-book-chinese issues
Sort by recently updated
recently updated
newest added

原版说有pdf,结果最近build成功的版本已经是一年前过期的版本了……请问中文版是不是没有pdf呀?

Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3. Commits c3b28d3 1.0.3 6226c95 Merge pull request #4 from Trott/fix-it-again c77691d fix: remediate ReDOS further 76ca93c chore: pin mocha to version that works with...

dependencies

place相关的部分,在中文部分并无上下文关联,我看了原版才知道为什么要有place的章节。 这里将place翻译为“引用路径”,并调整了部分句子的语义

在文件模块详情中的(什么是place)这一段接释的比较模糊,估计是翻译的不是很好,需要看很多遍才能理解 **当我提及被检查的 place 时,我想表达的是在这个 place 上,TypeScript 将会检查以下内容(例如一个 foo 的 place): 如果这个 place 表示一个文件,如:foo.ts,欢呼! 否则,如果这个 place 是一个文件夹,并且存在一个文件 foo/index.ts,欢呼! 否则,如果这个 place 是一个文件夹,并且存在一个 foo/package.json 文件,在该文件中指定 types 的文件存在,那么就欢呼! 否则,如果这个 place 是一个文件夹,并且存在一个 package.json 文件,在该文件中指定 main...

`interface User { name: string; age: number; } type Func = (user: User) => void; type Param = ParamType; // Param = User type AA = ParamType; // string `...

希望文档能增加夜间模式

How you write TypeScript modules is also a bit of a mess. Again here is how not to do it today: import foo = require('foo'). i.e. import/require. Use ES module...

我的TS版本为:^4.3.4 我在VScode 尝试了一下你的demo,并不会发生转换。赋值虽然成功,并不会改变泛型。 其实这个例子本质没啥意义,当作探索TS边界挺好的。 ![3333](https://user-images.githubusercontent.com/38155265/151274964-f7a1ac66-6115-440d-9cc3-9928f2a93859.png)