Skip to content

Commit a8392c6

Browse files
committed
Updated API Breaking Changes (markdown)
1 parent 6ee309e commit a8392c6

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

API-Breaking-Changes.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22

33
- `visitNode`'s `lift` Takes a `readonly Node[]` Instead of a `NodeArray<Node>`
44

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).
77

88

99
# TypeScript 4.1
1010

1111
- Type Arguments in JavaScript Are Not Parsed as Type Arguments
1212

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:
1515

16-
```ts
17-
f<T>(100)
18-
```
16+
```ts
17+
f<T>(100)
18+
```
1919

20-
TypeScript will parse it as the following JavaScript:
20+
TypeScript will parse it as the following JavaScript:
2121

22-
```js
23-
(f < T) > (100)
24-
```
22+
```js
23+
(f < T) > (100)
24+
```
2525

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.
2727

28-
[See more details here](https://github.com/microsoft/TypeScript/pull/36673).
28+
[See more details here](https://github.com/microsoft/TypeScript/pull/36673).
2929

3030
# TypeScript 4.0
3131

0 commit comments

Comments
 (0)