Skip to content

Commit

Permalink
chore: add ts type
Browse files Browse the repository at this point in the history
  • Loading branch information
technote-space committed Jun 13, 2020
1 parent 00afd7f commit 3c7fb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const App: FC<{
const classes = useStyles({theme});

useEffect(() => {
(async() => {
(async(): Promise<void> => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const worker = new Controller((result: any | StatusResult) => {
if ('status' in result) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/templates/NavContentEx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const NavContentEx: FC<{
</List>, [classes, page]);

useEffect(() => {
(async() => {
(async(): Promise<void> => {
if (worker) {
setController(<div className={classes.wrap}>
<div className={classes.wrapButtons}>
Expand Down

0 comments on commit 3c7fb7a

Please sign in to comment.