Skip to content

Commit

Permalink
move devDependencies, use intersection type
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Greuel authored and Daniel Greuel committed Jun 17, 2019
1 parent 7dca9c5 commit df95686
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
21 changes: 13 additions & 8 deletions lib/api/src/modules/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ export interface Version {
[key: string]: any;
}

export interface SubState {
versions: {
[key: string]: {
[key: string]: any;
};
latest: Version;
next: Version;
current: Version;
export interface UnknownEntries {
[key: string]: {
[key: string]: any;
};
}

export interface Versions {
latest?: Version;
next?: Version;
current?: Version;
}

export interface SubState {
versions: Versions & UnknownEntries;
lastVersionCheck: number;
dismissedVersionNotification: undefined | string;
}
Expand Down
5 changes: 3 additions & 2 deletions lib/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
"react-syntax-highlighter": "^8.0.1",
"react-textarea-autosize": "^7.1.0",
"recompose": "^0.30.0",
"simplebar-react": "^1.0.0-alpha.6"
"simplebar-react": "^1.0.0-alpha.6",
"@types/react-syntax-highlighter": "10.1.0"

},
"devDependencies": {
"@types/react-syntax-highlighter": "10.1.0",
"@types/react-textarea-autosize": "^4.3.3",
"@types/recompose": "^0.30.5",
"enzyme": "^3.9.0",
Expand Down
4 changes: 2 additions & 2 deletions lib/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"core-js": "^3.0.1",
"global": "^4.3.2",
"memoizerific": "^1.11.3",
"qs": "^6.6.0"
"qs": "^6.6.0",
"@types/reach__router": "^1.2.3"
},
"devDependencies": {
"@types/reach__router": "^1.2.3"
},
"peerDependencies": {
"react": "*",
Expand Down

0 comments on commit df95686

Please sign in to comment.