-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Never enable JSX in a .ts file (#7031)
- Loading branch information
1 parent
aafc318
commit d2d4f1c
Showing
4 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
packages/core/integration-tests/test/integration/typescript-legacy-cast/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
interface HeaderAction {} | ||
|
||
let setCurrentAction = (arg: any) => {}; | ||
let getCurrentAction = () => { | ||
return {}; | ||
}; | ||
|
||
const setAction = (fields: Partial<HeaderAction>) => { | ||
setCurrentAction({ ...<HeaderAction>getCurrentAction(), ...fields }); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/typescript-legacy-cast/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dependencies": { | ||
"react": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters