Skip to content

Commit c0e9c17

Browse files
committed
type: Fix type errors.
1 parent 14ab773 commit c0e9c17

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/react-app-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react-scripts" />

tsconfig.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
"isolatedModules": true,
1919
"declaration": true,
2020
"baseUrl": "website",
21-
"jsx": "react"
21+
"jsx": "react-jsx",
22+
"noFallthroughCasesInSwitch": true,
23+
"noEmit": true
2224
},
23-
"include": ["website"]
24-
}
25+
"include": [
26+
"website"
27+
]
28+
}

website/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
22
import MarkdownPreview from '@uiw/react-markdown-preview';
33
import GitHubCorners from '@uiw/react-github-corners';
4-
import Github from '@uiw/react-shields/lib/esm/github';
5-
import Npm from '@uiw/react-shields/lib/esm/npm';
4+
import Github from '@uiw/react-shields/esm/github';
5+
import Npm from '@uiw/react-shields/esm/npm';
66
import logo from './logo.svg';
77
import MDStr from '../README.md';
88
import Example from './Example';

0 commit comments

Comments
 (0)