| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| (x as T); | ||
| (x < y as boolean); // (x < y) as boolean; | ||
| x === (1 as number); // x === (1 as number); | ||
| ((x as any) as T); | ||
| x as T; | ||
| x < y as boolean; // (x < y) as boolean; | ||
| x === 1 as number; // x === (1 as number); | ||
| x as any as T; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| (<T> x).y; | ||
| (x as T).y; | ||
| x!.y; | ||
|
|
||
| (point1 ?? point2 as Point); | ||
| (point1 ?? point2) as Point; | ||
|
|
||
| a in b as c; | ||
| (a in b) as c; | ||
| a in (b as c); | ||
| a as b in c; | ||
| (a as b) in c; | ||
|
|
||
| a | b as c; | ||
| (a | b) as c; | ||
| a | (b as c); | ||
| a as b | c; | ||
| (a as b) | c; | ||
| a as (b | c); | ||
|
|
||
| a as b || c; | ||
| (a as b) || c; | ||
|
|
||
| a as b[0]; | ||
| a as (b[0]); | ||
| (a as b)[0]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "BABEL_8_BREAKING": false | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| (<T> x).y; | ||
| (x as T).y; | ||
| x!.y; | ||
| point1 ?? point2 as Point; | ||
| (point1 ?? point2) as Point; | ||
| a in b as c; | ||
| a in b as c; | ||
| a in (b as c); | ||
| a as b in c; | ||
| a as b in c; | ||
| a | b as c; | ||
| (a | b) as c; | ||
| a | b as c; | ||
| a as b | c; | ||
| (a as b) | c; | ||
| a as (b | c); | ||
| a as b || c; | ||
| a as b || c; | ||
| a as b[0]; | ||
| a as (b[0]); | ||
| (a as b)[0]; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "BABEL_8_BREAKING": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,21 @@ | ||
| (<T> x).y; | ||
| (x as T).y; | ||
| x!.y; | ||
| point1 ?? (point2 as Point); | ||
| ((point1 ?? point2) as Point); | ||
| point1 ?? point2 as Point; | ||
| (point1 ?? point2) as Point; | ||
| a in b as c; | ||
| a in b as c; | ||
| a in (b as c); | ||
| a as b in c; | ||
| a as b in c; | ||
| a | b as c; | ||
| (a | b) as c; | ||
| a | b as c; | ||
| a as b | c; | ||
| (a as b) | c; | ||
| a as b | c; | ||
| a as b || c; | ||
| a as b || c; | ||
| a as b[0]; | ||
| a as b[0]; | ||
| (a as b)[0]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 1 + (<number> 1); | ||
| 1 + <number> 1; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| (<number> 1) + 1; | ||
| <number> 1 + 1; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| (<number> x).y; | ||
| (<number> x)[y]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| (<number> x).y; | ||
| (<number> x)[y]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| (<number> x)!; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| (<number> x)!; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| (<number> 1); | ||
| <number> 1; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| (x satisfies T); | ||
| (x < y satisfies boolean); // (x < y) satisfies boolean; | ||
| x === (1 satisfies number); // x === (1 satisfies number); | ||
| ((x satisfies any) satisfies T); | ||
| (( | ||
| x satisfies T; | ||
| x < y satisfies boolean; // (x < y) satisfies boolean; | ||
| x === 1 satisfies number; // x === (1 satisfies number); | ||
| x satisfies any satisfies T; | ||
| ( | ||
| // a | ||
| x | ||
| /* b */) satisfies T); | ||
| ((x /* c */) satisfies T); | ||
| /* b */) satisfies T; | ||
| (x /* c */) satisfies T; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| function* generator() { | ||
| const one = ((yield "one") as number); | ||
| const two = (<number> (yield "two")); | ||
| const three = ((yield "three") satisfies number); | ||
| const one = (yield "one") as number; | ||
| const two = <number> (yield "two"); | ||
| const three = (yield "three") satisfies number; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| a => { | ||
| var _a$b; | ||
| if ((_a$b = (a.b as any)) !== null && _a$b !== void 0 && _a$b.call(a)) {} | ||
| if ((_a$b = a.b as any) !== null && _a$b !== void 0 && _a$b.call(a)) {} | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| var _a$b, _a; | ||
| (_a$b = ((_a = a).b as any)) === null || _a$b === void 0 ? void 0 : _a$b.call(_a); | ||
| (_a$b = (_a = a).b as any) === null || _a$b === void 0 ? void 0 : _a$b.call(_a); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| ((foo as A).bar as B) == null ? void 0 : ((foo as A).bar as B)(foo.bar, false); | ||
| (foo as A).bar as B == null ? void 0 : ((foo as A).bar as B)(foo.bar, false); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| a => { | ||
| var _a$c; | ||
| ((((a !== null && a !== void 0 && a.b) as any) && (_a$c = a.c) !== null && _a$c !== void 0 && _a$c.d) as any) ? 0 : 1; | ||
| ((a !== null && a !== void 0 && a.b) as any && (_a$c = a.c) !== null && _a$c !== void 0 && _a$c.d) as any ? 0 : 1; | ||
| }; |
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityHere parens are not actually necessary, but our AST has a TSParenthesizedType node so they are preserved. Babel 8 removes the parens, because TSParenthesizedType is not enabled by default anymore.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.