Skip to content

Commit 9a3722a

Browse files
authored
Merge pull request #47 from rokoroku/issue-45
Fix Typescript compilation issue
2 parents 46dce57 + 20e47ca commit 9a3722a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"postcss-url": "^7.3.2",
4040
"prettier": "^1.13.5",
4141
"react-hot-loader": "^4.3.1",
42-
"redux-devtools-extension": "^2.13.2",
42+
"redux-devtools-extension": "^2.13.5",
4343
"style-loader": "^0.21.0",
4444
"ts-loader": "^4.4.1",
4545
"typescript": "^2.9.1",

types/global.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ declare module '*.css' {
77
}
88

99
// Omit type https://github.com/Microsoft/TypeScript/issues/12215
10+
type SimpleKeyOf<T> = Extract<keyof T, 'number' | 'string'>;
1011
type Diff<T extends string, U extends string> = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T];
11-
type Omit<T, K extends keyof T> = { [P in Diff<keyof T, K>]: T[P] };
12+
type Omit<T, K extends SimpleKeyOf<T>> = { [P in Diff<SimpleKeyOf<T>, K>]: T[P] };
1213

1314
type PartialPick<T, K extends keyof T> = Partial<T> & Pick<T, K>;

0 commit comments

Comments
 (0)