Skip to content

Commit f85eac8

Browse files
committed
Updates the site to 4.0 prod
1 parent 45404fd commit f85eac8

16 files changed

Lines changed: 49 additions & 39 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"resolutions": {
3434
"@types/react": "16.9.17",
3535
"node-gyp": "5.1.0",
36-
"typescript": "4.0.0-beta",
36+
"typescript": "4.0.2",
3737
"prettier": "^2.0.2"
3838
},
3939
"jest": {

packages/playground-examples/copy/en/4-0/New Checks/Class Constructor Code Flow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22
//
33
// In 4.0, we use control flow analysis to
44
// infer the potential type of a class property based on

packages/playground-examples/copy/en/4-0/New JS Features/JSDoc Deprecated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22

33
// In 4.0 the JSDoc tag @deprecated is added to the
44
// type system. You can use @deprecated anywhere

packages/playground-examples/copy/en/4-0/New JS Features/Logical Operators and Assignment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22

33
// Logical Operators and Assignment are new features in
44
// JavaScript for 2020. These are a suite of new operators

packages/playground-examples/copy/en/4-0/New JS Features/Nullish Coalescing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22

33
// # Nullish Coalescing
44
//

packages/playground-examples/copy/en/4-0/New TS Features/Named Tuples.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22
// Tuples are arrays where the order is important to the type system,
33
// you can learn more about them in example:tuples
44

packages/playground-examples/copy/en/4-0/New TS Features/Unknown in Catch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22

33
// Because JavaScript allows throwing any value, TypeScript
44
// does not support declaring the type of an error
@@ -16,15 +16,15 @@ try {
1616
// Same behavior with any:
1717
try {
1818
// ..
19-
} catch (e: any) {
19+
} catch (e) {
2020
e.stack;
2121
}
2222

2323
// Explicit behavior with unknown:
2424

2525
try {
2626
// ..
27-
} catch (e: unknown) {
27+
} catch (e) {
2828
// You cannot use `e` at all until the type
2929
// system learns what it is, for more info see:
3030
// example:unknown-and-never

packages/playground-examples/copy/en/4-0/New TS Features/Variadic Tuples.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22
// Variadic Tuples gives tuples the ability to handle the rest operator (...)
33
// to pass types through type checker in a way that works like generics.
44

packages/playground-examples/copy/pt/4-0/New JS Features/JSDoc Deprecated.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22

33
// Na versão 4.0 a tag JSDoc @deprecated foi adicionada ao
44
// sistema de tipos. Você pode usar @deprecated em qualquer
@@ -15,7 +15,7 @@ interface AccountInfo {
1515
declare const userInfo: AccountInfo;
1616
userInfo.sex;
1717

18-
// TypeScript irá oferecer um aviso não bloqueante quando
18+
// TypeScript irá oferecer um aviso não bloqueante quando
1919
// uma propriedade descontinuada for acessada, e editores como
20-
// vscode irão usar essa informação em lugares como o
20+
// vscode irão usar essa informação em lugares como o
2121
// intellisense, outlines e no seu código.

packages/playground-examples/copy/pt/4-0/New JS Features/Logical Operators and Assignment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// { compiler: { ts: "4.0.0-beta" } }
1+
//// { compiler: { ts: "4.0.2" } }
22

33
// Logical Operators e Assignment são novas funcionalidades do
44
// JavaScript para 2020. Esses são um conjunto de operadores novos

0 commit comments

Comments
 (0)