mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
feat: re-create yarn.lock
This commit is contained in:
parent
a13326779f
commit
ccdffe027f
16
package.json
16
package.json
@ -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"
|
||||
},
|
||||
@ -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",
|
||||
@ -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": {
|
||||
|
||||
@ -10,7 +10,7 @@ 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);
|
||||
@ -18,7 +18,7 @@ function composeMiddleware<Action, State>(chain: Array<Middleware<Action, State>
|
||||
};
|
||||
}
|
||||
|
||||
const createReducer = <Action, State>(...middlewares: Array<Middleware<Action, State>>) => {
|
||||
const createReducer = <Action, State>(...middlewares: Middleware<Action, State>[]) => {
|
||||
const composedMiddleware = composeMiddleware<Action, State>(middlewares);
|
||||
|
||||
return (
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user