@pushwoosh/dumb-components 2.9.1 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
|
-
type Ref = RefObject<HTMLElement> | RefObject<HTMLElement>[];
|
|
2
|
+
type Ref = RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[];
|
|
3
3
|
/**
|
|
4
4
|
* Calls `handler` on a mousedown/touchstart outside the referenced element(s).
|
|
5
5
|
* Pass a single ref or an array of refs to treat several elements as "inside".
|