You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API-Breaking-Changes.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,30 +2,30 @@
2
2
3
3
-`visitNode`'s `lift` Takes a `readonly Node[]` Instead of a `NodeArray<Node>`
4
4
5
-
The `lift` function in the `visitNode` API now takes a `readonly Node[]`.
6
-
You can [see details of the change here](https://github.com/microsoft/TypeScript/pull/42000).
5
+
The `lift` function in the `visitNode` API now takes a `readonly Node[]`.
6
+
You can [see details of the change here](https://github.com/microsoft/TypeScript/pull/42000).
7
7
8
8
9
9
# TypeScript 4.1
10
10
11
11
- Type Arguments in JavaScript Are Not Parsed as Type Arguments
12
12
13
-
Type arguments were already not allowed in JavaScript, but in TypeScript 4.1, the parser will parse them in a more spec-compliant way.
14
-
So when writing the following code in a JavaScript file:
13
+
Type arguments were already not allowed in JavaScript, but in TypeScript 4.1, the parser will parse them in a more spec-compliant way.
14
+
So when writing the following code in a JavaScript file:
15
15
16
-
```ts
17
-
f<T>(100)
18
-
```
16
+
```ts
17
+
f<T>(100)
18
+
```
19
19
20
-
TypeScript will parse it as the following JavaScript:
20
+
TypeScript will parse it as the following JavaScript:
21
21
22
-
```js
23
-
(f <T) > (100)
24
-
```
22
+
```js
23
+
(f <T) > (100)
24
+
```
25
25
26
-
This may impact you if you were leveraging TypeScript's API to parse type constructs in JavaScript files, which may have occurred when trying to parse Flow files.
26
+
This may impact you if you were leveraging TypeScript's API to parse type constructs in JavaScript files, which may have occurred when trying to parse Flow files.
27
27
28
-
[See more details here](https://github.com/microsoft/TypeScript/pull/36673).
28
+
[See more details here](https://github.com/microsoft/TypeScript/pull/36673).
0 commit comments