Commit Graph

707 Commits

Author SHA1 Message Date
Patrick Zhong
939295cc9c Add --showConfig and --strictBindCallApply. PR928,PR929 2018-12-11 13:10:53 +08:00
Patrick Zhong
9a4a48b298 fix wording 2018-11-23 17:13:11 +08:00
Patrick Zhong
7eb5c0a0ec
breaking changes for 3.1 (#235) 2018-11-17 12:01:56 +08:00
Zong
fe1c1d462f Update Breaking changes in TypeScript 2.8 (#234) 2018-11-15 20:01:04 +08:00
Patrick Zhong
bb896ac8ed fix markdown lint errors 2018-11-09 11:03:15 +08:00
Zong
f836116fb2 Update Breaking changes in TypeScript 2.6 and TypeScript 2.7 (#229) 2018-11-08 09:42:56 +08:00
Zong
98d98edb97 Update Advanced Types.md & Enums.md (#228)
* Update Advanced Types.md
* Update Enums.md
2018-11-07 09:38:05 +08:00
initial-wu
61733b594a Update Deep Dive.md (#227)
纠正一点小错误
2018-10-31 09:28:48 +08:00
zhongsp
649ae14402 added @types folder to module resolution algorithm 2018-10-24 08:17:25 +08:00
zhongsp
8b2345c112 added @types folder to module resolution algorithm 2018-10-24 08:16:27 +08:00
zhongsp
f28171caa4 Update Type Inference - mouseEvent.button is valid and not a bad example. PR825 2018-10-09 10:40:26 +08:00
zhongsp
5dde0645eb TypeScript 3.1 2018-09-29 16:38:35 +08:00
Leon Zhang
25163562c3 调整 export = 的描述 (#225) 2018-09-12 15:24:52 +08:00
zhongsp
a5e1470714 tweak trans 2018-09-04 13:31:07 +08:00
zhongsp
2d63e5660b Update Compiler Options.md 2018-09-02 16:28:37 +08:00
zhongsp
5f5f686b80 Update Compiler Options.md 2018-09-02 16:24:43 +08:00
Leon Zhang
2f92532df4 Update Interfaces.md (#224) 2018-09-01 06:12:35 +08:00
Leon Zhang
2f63a9a168 Update Interfaces.md (#223) 2018-09-01 06:11:00 +08:00
Patrick Zhong
49e0a634e6
Breaking changes 2.4 (#221)
breaking changes in TypeScript 2.4, close #181
2018-08-26 09:02:34 +08:00
zhongsp
6c05e3b551 New Section: Utility Types. close #220 2018-08-24 15:29:33 +08:00
Patrick Zhong
4b44fc13b9
New section: Project References (#218)
New section "project references". close #216
2018-08-15 12:47:32 +08:00
zhongsp
df8fe6e09a update readme 2018-08-10 17:31:10 +08:00
Patrick Zhong
f2e340f432
Release notes for TypeScript 3.0. (#217)
* Release notes for TypeScript 3.0. close #215
* review
2018-08-10 17:23:48 +08:00
zhongsp
232a5cf0a4 Update Type Checking Javascript files. Close #214. PR799. 2018-08-07 09:22:52 +08:00
zhongsp
1f09371bc0 Add documentation for environment variables to configure watching of files and directories. PR792 2018-07-25 14:38:05 +08:00
zhongsp
3500a1c5bb conditional type 2018-07-19 12:47:55 +08:00
Kerminate
19b21ef727 fix: 修改笔误,联合类型替换类型类型 (#213) 2018-07-06 08:09:32 +08:00
zhongsp
51dffd0ca7 Close correctly the div tag in the jsx.md PR781 2018-07-01 15:47:14 +08:00
zhongsp
07b6515d50 New in TypeScript 2.9 2018-06-25 16:20:49 +08:00
zhongsp
7739165545 docs(jsx): add missing {}. PR780 2018-06-15 16:39:15 +08:00
zhongsp
68f3d39fea what is new in TypeScript 2.8 2018-06-15 15:07:53 +08:00
zhongsp
19a88f08c6 stage 2018-06-15 15:05:42 +08:00
zhongsp
536ccb14b0 Fixed destructing function declaration example. PR777 2018-06-10 18:07:49 +08:00
zhongsp
2750bca42b Update TypeScript 1.7.md PR776 2018-06-10 17:33:36 +08:00
zhongsp
50d648d914 Add --extendedDiagnostics flag. PR775 2018-06-08 09:15:06 +08:00
zhongsp
c2b54b6abe Replace alert function with console.log where applicable. PR770 2018-06-04 08:01:38 +08:00
zhongsp
c04bf338d9 Fix Type Compatibility inconsistent comment style. PR769 2018-06-04 07:57:41 +08:00
zhongsp
81d0211b48 Fix Type Compatibility typo and minor punctuation issues. PR768 2018-06-01 07:09:12 +08:00
Patrick Zhong
1fe35dfe6f
Pr758 (#210)
Editorial changes + some remarks on IntrinsicAttributes. PR758
2018-05-22 14:01:25 +08:00
noe132
588fcec94a [Fix] Compiler Options.md (#209)
moduleResolution 值中的 "|" 符号被错误识别为表格分界,出现该行有6列
采用官方文档目前的格式,用or分隔。
2018-05-14 07:57:07 +08:00
zhongsp
e419c7c3a8 Mention strictPropertyInitialization requires strictNullChecks. PR755 2018-05-07 13:56:50 +08:00
zhongsp
39d41b0ede add ES2017.Intl & ES2018.Intl to compiler options. PR759 2018-05-07 13:09:36 +08:00
zhongsp
99b2cda731 Add object to basic types handbook. PR751 2018-04-22 09:01:18 +08:00
zhongsp
e66ade83a3 fix typo. PR752 2018-04-22 08:46:20 +08:00
zhongsp
fc3b7d2bcf correct translation. #207 2018-04-19 12:23:54 +08:00
zhongsp
5c1c6a422a correct translation, fixed #206 2018-04-17 15:23:07 +08:00
zhongsp
02234332bb Fix for ESLint "Unexpected trailing comma" warning. PR750 2018-04-11 08:59:24 +08:00
zhongsp
6f72c6f2ac Improved code in 'Modules'. PR748 2018-04-11 08:58:23 +08:00
zhongsp
dc7e3c889c Add --preserveWatchOutput flag. PR745 2018-04-09 16:21:22 +08:00
zhongsp
2436856797 Correct a MSBuild configuration comment to have a consistent instruction. PR738 2018-03-25 17:01:17 +08:00
zhongsp
b807b0c994 fix #205 2018-03-15 14:09:57 +08:00
jiangqizheng
4cf9810171 添加注释:("target": "es5") (#204)
交叉类型的例子,在es6中错误,class内建方法不可枚举(enumerable:false)
2018-03-15 07:51:52 +08:00
zhongsp
276a4c4383 importing -> exporting in a sentence. PR731. 2018-03-08 10:11:53 +08:00
zhongsp
76010c8ff1 wording 2018-03-06 15:02:29 +08:00
zhongsp
07efebf580 Update links to React and webpack docs. PR726 2018-02-27 13:59:40 +08:00
zhongsp
e1378e510f satisfy markdown lint 2018-02-21 08:40:23 +08:00
zhongsp
146a2168f1 New in TypeScript 2.7. 大家新春快乐! 2018-02-15 08:03:54 +08:00
杨皓天
11a1e0af72 Update: React tutorial Jest example (#203)
* Update: React tutorial Jest example

* Fix: forced blank lines pass markdownlint
2018-02-02 08:54:27 +08:00
zhongsp
2896d91ff6 Fix default for allowSyntheticDefaultImports. PR715 2018-01-27 07:56:17 +08:00
zhongsp
0b3bcff5db Fix typo in optional interface property example. PR716 2018-01-27 07:54:33 +08:00
zhongsp
f2a048c805 Typo fixes. PR713 2018-01-18 16:08:25 +08:00
zhongsp
b93bf614e4 wording: 逆变-> 抗变,变型->变体 2018-01-12 09:40:17 +08:00
zhongsp
62e65821ce Added clarification about scripts and global scope. PR712 2018-01-11 13:26:09 +08:00
zhongsp
68267017c3 Make index signature return type issues clearer. PR689 2018-01-11 13:22:10 +08:00
zhongsp
4684a2616a Fix order of sections. PR710 2018-01-11 13:19:35 +08:00
zhongsp
1e6e49965f Also list --noErrorTruncation as a supported flag. PR709 2018-01-11 13:18:39 +08:00
zhongsp
08f25bef50 A few corrections. PR706 2018-01-11 13:15:50 +08:00
zhongsp
c9df62cf90 An import path cannot end with a '.tsx' extension. PR705 2018-01-11 13:14:22 +08:00
zhongsp
bea371f967 Add select method to TextBox class in interfaces example. PR698 2018-01-11 13:11:52 +08:00
zhongsp
15f363d8c7 Fixed typo in "Compiler Options in MSBuild.md". PR697 2018-01-10 10:45:08 +08:00
zhongsp
6ede4b0316 Removed mentions of "isomorphic" from Modules. PR696 2018-01-10 10:39:41 +08:00
zhongsp
6716757301 add missing dep. PR691 2017-12-20 16:20:31 +08:00
Xiaohan Lee
286f43e48e Fix typo in Generics.md (#199) 2017-12-06 08:32:01 +08:00
Xiaohan Lee
8c28d18126 Fix typo in Classes.md (#200) 2017-12-06 08:31:36 +08:00
zhongsp
564dd0c78b Remove ambiguous sentence about let/var/const brevity. PR685 2017-12-02 18:18:42 +08:00
zhongsp
a5b36f9f94 clarification for triple-slash-reference-types. PR681 2017-11-30 20:57:38 +08:00
zhongsp
e8cda97b16 Updated section on enums. close #193. 2017-11-28 19:53:17 +08:00
zhongsp
dc1e62182a Updated section on enums. #193 2017-11-28 19:51:29 +08:00
小乔布斯
0ae2ddb096 TypeScript 2.5和TypeScript 2.6的新特性 (#198) 2017-11-23 07:08:53 +08:00
zhongsp
d3d9114df6 Added ES2017.TypedArrays lib. PR680 2017-11-20 15:03:29 +08:00
zhongsp
59eed7c9bb Add simpler example of inheritance. PR679 2017-11-15 08:06:34 +08:00
zhongsp
346f50b772 Merge branch 'master' of https://github.com/zhongsp/TypeScript 2017-11-15 07:47:27 +08:00
zhongsp
ed575dace7 satisfy markdown lint 2017-11-15 07:46:56 +08:00
Noodles
3804cc48fb 一处翻译错误 modified: doc/handbook/Basic Types.md (#196) 2017-11-10 13:25:19 +08:00
zhongsp
bca48868b8 Topic: "Type checking JavaScript files". PR677. closed #194 2017-11-07 08:39:44 +08:00
zhongsp
9ae2d22cce Updated section on enums. #193 2017-11-06 18:15:44 +08:00
zhongsp
8ad8cd0b0e Fix syntax error. PR678 2017-11-02 11:49:26 +08:00
zhongsp
4ec65fcfc7 Add --strict compiler option in msbuild. PR676 2017-11-02 11:47:46 +08:00
zhongsp
6662e173d0 Don't even mention the entry point for running npm init in the React/Webpack sample. PR673 2017-11-02 11:46:32 +08:00
zhongsp
3241de81ff Update link to webpack v2 configuration docs. PR671 2017-11-02 11:42:44 +08:00
zhongsp
787d7c5ab6 add description of declaration-including package to Consumption.md. PR667 2017-11-02 11:41:39 +08:00
zhongsp
a59954a594 Change var to let. PR669 2017-10-24 19:22:13 +08:00
zhongsp
066ab01dd8 --lib defaults are a list of libraries. PR666 2017-10-24 19:19:23 +08:00
zhongsp
6b1f6e240f Add documentation for --strictFunctionTypes 2017-10-24 19:12:29 +08:00
zhongsp
c82b712b53 Clarify numeric value to enum behavior using a code comment. PR659 2017-10-16 08:02:17 +08:00
zhongsp
b03be3220d minor grammar fix. fPR657 2017-10-16 08:00:33 +08:00
zhongsp
4d813bf550 Fix package.json "dependencies" syntax. PR656 2017-10-16 07:56:58 +08:00
zhongsp
97c8620a01 React & React-Dom file location changed. PR651 2017-10-16 07:51:48 +08:00
zhongsp
9bd4921c57 Update JSX page. PR596 2017-10-09 08:52:09 +08:00
zhongsp
731b6ab6e9 modify PR 2017-10-09 08:13:16 +08:00
罗泽轩
e6ab117108 Fix typo and slightly improve readability. (#192) 2017-10-05 10:14:46 +08:00
zhongsp
acd3190986 Fix react component type passed to generic. PR648 2017-09-27 08:32:40 +08:00
zhongsp
2fd0fd995a Remove an unecessary parenthesis. PR646 2017-09-27 08:27:35 +08:00
zhongsp
01da797e9c fix markdown format 2017-09-27 08:26:35 +08:00
zhongsp
72939856b3 Fix incorrect documentation. PR643 2017-09-27 08:24:35 +08:00
zhongsp
d54c788b6d remove property decorator misleading line. PR642 2017-09-27 08:20:25 +08:00
zhongsp
9402423cae Add a new line before "It is a compile time ...". PR639 2017-09-27 08:12:56 +08:00
zhongsp
0f31e38bed Add 2.5 compiler options for MSBuild to handbook. PR640 2017-09-27 08:09:01 +08:00
小乔布斯
7a487aa7bf 修改错误的链接。 (#190) 2017-09-04 08:05:38 +08:00
zhongsp
7ad1b01463 Suggestion for a new code example. PR637 2017-08-25 08:54:52 +08:00
zhongsp
7cc8a1e699 Update TypeScript in 5 minutes.md. PR636 2017-08-25 08:52:51 +08:00
zhongsp
10861343fd Document --preserveSymlinks compiler option. PR632 2017-08-17 09:18:39 +08:00
zhongsp
a867ba8b84 Try to clarify what an "own, enumerable property" is. PR604 2017-08-17 09:16:00 +08:00
zhongsp
2825e54576 Fix typos. PR635 2017-08-17 09:12:58 +08:00
zhongsp
247bffb75e Fixed markdown hyperlink not linking. PR617 2017-08-17 09:11:29 +08:00
zhongsp
23eb397095 Fix method name. PR612 2017-08-17 09:10:38 +08:00
zhongsp
57c8fbcd99 Update TypeScript 2.1.md. PR634 2017-08-17 09:09:49 +08:00
zhongsp
2d4048ee21 Correct spacing. PR633 2017-08-17 09:08:37 +08:00
zhongsp
52649aa8d4 A misprint in a code comment. PR631 2017-08-17 09:07:16 +08:00
zhongsp
7b840db20c Updated module resolution doc to match new rules. PR628 2017-08-17 09:05:21 +08:00
zhongsp
84f4224b01 Add line breaks. PR620 2017-08-17 09:03:23 +08:00
zhongsp
f6c941670e Use defined variable a. PR619 2017-08-17 09:02:00 +08:00
zhongsp
94782f5824 Fix broken link to concatenating modules. PR616 2017-08-17 09:01:03 +08:00
zhongsp
6cee465cfb Fixed error message in ts in 5 tutorial. PR602 2017-08-17 09:00:11 +08:00
zhongsp
7d81526218 update compiler options 2017-08-17 08:58:49 +08:00
zhongsp
759d4f894a Fix Best common type. PR592 2017-08-17 08:55:41 +08:00
Shawn Zhong
f240e6d43d Fix typo (#185)
Typo: Visual Studior  --> Visual Studio
2017-08-14 14:32:45 +08:00
zhongsp
4f48f6fdde Fix typo. fixed #183. 2017-07-17 12:30:48 +08:00
zhongsp
ce3c1d8d8c fix broken link 2017-07-13 12:59:37 +08:00
zhongsp
74cf605df3 what is new in ts 2.4. closed #180 2017-07-08 12:09:56 +08:00
zhongsp
5285a73e99 Clarified and expanded section on rootDirs. closed #168. 2017-06-30 17:50:59 +08:00
小乔布斯
a7670297e2 修复错误和描述语句优化 (#179) 2017-06-28 14:26:01 +08:00
zhongsp
f5cade0920 fix translation 2017-06-23 15:10:38 +08:00
zhongsp
3f405e1477 fix issue 2017-06-21 15:42:02 +08:00
zhongsp
9f4558e5a8 fix translation 2017-06-19 09:52:35 +08:00
zhongsp
016867c8e8 fix translation 2017-06-19 09:49:52 +08:00
Patrick Zhong
acd8275c8c Update README.md 2017-06-18 10:36:03 +08:00
Patrick Zhong
2bec6dd4f6 fix broken link 2017-06-18 10:35:27 +08:00
zhongsp
e672c0ad9e new quick starts 2017-06-18 10:28:08 +08:00
zhongsp
0e1c541e00 Add a missing "this". PR609 2017-06-17 12:24:34 +08:00
zhongsp
14e0622d47 Remove backslash path separators. PR608 2017-06-17 12:22:33 +08:00
zhongsp
c435f97aa8 Small documentation fixes. PR600 2017-06-17 12:20:21 +08:00
zhongsp
14fbda3d91 Corrected Spacing in Functions.md, 4th code eg. PR599 2017-06-17 12:18:25 +08:00
小乔布斯
b176783ef4 新增TypeScript 2.3,修复和优化一些内容。 (#178) 2017-06-16 08:32:43 +08:00
leo
19e2f12ed7 fix a tiny error (#177) 2017-06-15 13:14:59 +08:00
zhongsp
98038a4b7f improve translation 2017-06-12 19:10:49 +08:00
minchao
317166f879 Fix translation (#175)
```
That’s not to say that block-scoped variable can never be declared with a function-scoped variable. The block-scoped variable just needs to be declared within a distinctly different block.
```
2017-06-12 19:03:18 +08:00
Arz Yu
16e2a02594 修正笔误:“一周” => ”一同“ (#176) 2017-06-12 19:02:11 +08:00
zhongsp
73d7a70930 satisfy lint 2017-05-30 09:54:41 +08:00
zhongsp
97ef663eaf Update asp.net guide to work with VS2017 and npm3. PR590 2017-05-30 09:52:31 +08:00