mirror of
https://github.com/streamich/react-use.git
synced 2025-12-08 18:02:14 +00:00
Also reduce max line width to 100. And remove `lint:types` step for commit sequence, it bothers when committing incomplete (wip) changes.
11 lines
200 B
TypeScript
11 lines
200 B
TypeScript
import 'jest-localstorage-mock';
|
|
import { isBrowser } from '../src/misc/util';
|
|
|
|
if (isBrowser) {
|
|
(window as any).ResizeObserver = class ResizeObserver {
|
|
observe() {}
|
|
|
|
disconnect() {}
|
|
};
|
|
}
|