Skip to content

Commit

Permalink
fix: improve language
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Dec 7, 2023
1 parent fb0b9d2 commit 26582d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/catalog/tsx/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This page curates a list of example ast-grep rules to check and to rewrite TypeS
TypeScript is a typed JavaScript extension and TSX is a further extension that allows JSX elements.
They need different parsers because of [conflicting syntax](https://www.typescriptlang.org/docs/handbook/jsx.html#the-as-operator).

TS allows both the `as` operator and angle brackets (`<>`). While TSX only allows the `as` operator for type assertions because it interprets angle brackets as JSX elements.
TS allows both the `as` operator and angle brackets (`<>`) for type assertions. While TSX only allows the `as` operator because it interprets angle brackets as JSX elements.
:::

<!--@include: ./avoid-jsx-short-circuit.md-->
Expand Down
2 changes: 1 addition & 1 deletion website/catalog/typescript/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This page curates a list of example ast-grep rules to check and to rewrite TypeS
TypeScript is a typed JavaScript extension and TSX is a further extension that allows JSX elements.
They need different parsers because of [conflicting syntax](https://www.typescriptlang.org/docs/handbook/jsx.html#the-as-operator).

TS allows both the `as` operator and angle brackets (`<>`). While TSX only allows the `as` operator for type assertions because it interprets angle brackets as JSX elements.
TS allows both the `as` operator and angle brackets (`<>`) for type assertions. While TSX only allows the `as` operator because it interprets angle brackets as JSX elements.
:::

<!--@include: ./redundant-usestate-type.md-->
Expand Down

0 comments on commit 26582d7

Please sign in to comment.