Skip to content

Commit 6c789c3

Browse files
committed
Migrate DefaultTheme demo to typescript
1 parent ea4fd21 commit 6c789c3

File tree

6 files changed

+1823
-12
lines changed

6 files changed

+1823
-12
lines changed

docs/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
"@types/autosuggest-highlight": "^3.1.0",
3232
"@types/react-autosuggest": "^9.3.9",
3333
"@types/react-dom": "^16.8.5",
34+
"@types/react-inspector": "^3.0.0",
35+
"@types/react-redux": "^7.1.1",
3436
"@types/react-router-dom": "^4.3.4",
3537
"@types/react-select": "^3.0.0",
3638
"@types/react-swipeable-views": "^0.13.0",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Reducer } from 'redux';
2+
3+
export interface OptionsState {
4+
options: {
5+
codeVariant: 'JS' | 'TS';
6+
userLanguage: string;
7+
t: (key: string, options?: { ignoreWarning: boolean }) => string;
8+
};
9+
}
10+
11+
export type optionsReducer = Reducer<OptionsState>;

0 commit comments

Comments
 (0)