Skip to content

Commit

Permalink
feat: re-create yarn.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Nov 4, 2019
1 parent a133267 commit ccdffe0
Show file tree
Hide file tree
Showing 4 changed files with 1,624 additions and 2,691 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
},
"homepage": "https://github.com/streamich/react-use#readme",
"dependencies": {
"copy-to-clipboard": "^3.1.0",
"nano-css": "^5.1.0",
"copy-to-clipboard": "^3.2.0",
"nano-css": "^5.2.1",
"react-fast-compare": "^2.0.4",
"resize-observer-polyfill": "^1.5.1",
"screenfull": "^5.0.0",
"set-harmonic-interval": "^1.0.1",
"throttle-debounce": "^2.0.1",
"throttle-debounce": "^2.1.0",
"ts-easing": "^0.2.0",
"tslib": "^1.10.0"
},
Expand All @@ -68,16 +68,16 @@
"@babel/preset-typescript": "7.6.0",
"@semantic-release/changelog": "3.0.5",
"@semantic-release/git": "7.0.17",
"@semantic-release/npm": "5.3.3",
"@semantic-release/npm": "5.3.4",
"@shopify/jest-dom-mocks": "2.8.5",
"@storybook/addon-actions": "5.2.5",
"@storybook/addon-knobs": "5.2.5",
"@storybook/addon-notes": "5.2.5",
"@storybook/addon-options": "5.2.5",
"@storybook/react": "5.2.5",
"@testing-library/react-hooks": "2.0.3",
"@testing-library/react-hooks": "3.1.1",
"@types/jest": "24.0.21",
"@types/react": "16.9.2",
"@types/react": "16.9.11",
"babel-core": "6.26.3",
"babel-loader": "8.0.6",
"babel-plugin-dynamic-import-node": "2.3.0",
Expand All @@ -103,12 +103,12 @@
"semantic-release": "15.13.30",
"ts-loader": "6.2.1",
"ts-node": "8.4.1",
"tslint": "5.20.0",
"tslint": "6.0.0-beta0",
"tslint-config-prettier": "1.18.0",
"tslint-eslint-rules": "5.4.0",
"tslint-plugin-prettier": "2.0.1",
"tslint-react": "4.1.0",
"typescript": "3.5.3"
"typescript": "3.6.4"
},
"config": {
"commitizen": {
Expand Down
4 changes: 2 additions & 2 deletions src/createReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ interface Store<Action, State> {

type Middleware<Action, State> = (store: Store<Action, State>) => (next: Dispatch<Action>) => (action: Action) => void;

function composeMiddleware<Action, State>(chain: Array<Middleware<Action, State>>) {
function composeMiddleware<Action, State>(chain: Middleware<Action, State>[]) {
return (context: Store<Action, State>, dispatch: Dispatch<Action>) => {
return chain.reduceRight((res, middleware) => {
return middleware(context)(res);
}, dispatch);
};
}

const createReducer = <Action, State>(...middlewares: Array<Middleware<Action, State>>) => {
const createReducer = <Action, State>(...middlewares: Middleware<Action, State>[]) => {
const composedMiddleware = composeMiddleware<Action, State>(middlewares);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/util/parseTimeRanges.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const parseTimeRanges = ranges => {
const result: Array<{ start: number; end: number }> = [];
const result: { start: number; end: number }[] = [];

for (let i = 0; i < ranges.length; i++) {
result.push({
Expand Down
Loading

0 comments on commit ccdffe0

Please sign in to comment.