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 a3b19d1 commit d48e03e
Show file tree
Hide file tree
Showing 4 changed files with 1,608 additions and 2,683 deletions.
8 changes: 4 additions & 4 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 Down Expand Up @@ -103,7 +103,7 @@
"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",
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 d48e03e

Please sign in to comment.