Skip to content

Commit

Permalink
Merge pull request #235 from snelsi/chore/update-dependencies
Browse files Browse the repository at this point in the history
Chore/update dependencies
  • Loading branch information
maslianok committed Feb 18, 2023
2 parents 62c2a72 + e8c8919 commit db96dd1
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 141 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@
"lodash": "^4.17.21"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^11.0.0",
"@types/lodash": "^4.14.191",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"eslint": "^8.32.0",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-react": "^7.32.0",
"prettier": "^2.8.3",
"rollup": "^3.10.0",
"rollup-plugin-node-externals": "^5.1.0",
"typescript": "^4.9.4"
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.32.2",
"prettier": "^2.8.4",
"rollup": "^3.17.0",
"rollup-plugin-node-externals": "^5.1.2",
"typescript": "^4.9.5"
},
"peerDependencies": {
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
Expand Down
4 changes: 3 additions & 1 deletion src/useResizeDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export interface useResizeDetectorProps<T extends HTMLElement> extends Props {
targetRef?: MutableRefObject<T | null>;
}

function useResizeDetector<T extends HTMLElement = any>(props: useResizeDetectorProps<T> = {}): UseResizeDetectorReturn<T> {
function useResizeDetector<T extends HTMLElement = any>(
props: useResizeDetectorProps<T> = {}
): UseResizeDetectorReturn<T> {
const {
skipOnMount = false,
refreshMode,
Expand Down

0 comments on commit db96dd1

Please sign in to comment.