UNPKG
@hackplan/polaris
Version:
latest (4.1.9)
4.1.9
4.1.8
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
Shopify’s product component library
github.com/Shopify/polaris-react
Shopify/polaris-react
@hackplan/polaris
/
types
/
utilities
/
use-deep-compare-ref.d.ts
5 lines
(4 loc)
•
260 B
TypeScript
View Raw
1
2
3
4
5
declare
type
DependencyList
=
ReadonlyArray
<
unknown
>;
declare
type
Comparator
=
(
a
:
DependencyList
,
b
:
DependencyList
) =>
boolean
;
export
declare
function
useDeepCompareRef
(
dependencies
:
DependencyList
,
comparator
?:
Comparator
):
readonly
unknown
[];
export
{};