@@ -531,9 +531,6 @@ export interface LocalStorageReturn<T> {
531
531
supported: boolean ;
532
532
}
533
533
534
- // @public (undocumented)
535
- export type LocalStorageTyped <T extends object > = string ;
536
-
537
534
// @public (undocumented)
538
535
export const MAX_ARRAY_SIZE: number ;
539
536
@@ -1326,8 +1323,8 @@ export function useLocalStorage(
1326
1323
): LocalStorageReturn <string >;
1327
1324
1328
1325
// @public (undocumented)
1329
- export function useLocalStorage<T extends object = any >(
1330
- key : LocalStorageTyped < T > | string ,
1326
+ export function useLocalStorage<T >(
1327
+ key : string ,
1331
1328
defaultValue ? : RefTyped <T >,
1332
1329
sync ? : boolean
1333
1330
): LocalStorageReturn <T >;
@@ -1382,6 +1379,19 @@ export function useOnMouseMove(
1382
1379
// @public (undocumented)
1383
1380
export function useOnMouseMove(el : RefElement , wait : number ): MouseMoveResult ;
1384
1381
1382
+ // @public (undocumented)
1383
+ export function useOnMouseMove<T extends Element >(
1384
+ el : Ref <T > | Ref <T | null >,
1385
+ options ? : boolean | AddEventListenerOptions ,
1386
+ wait ? : number
1387
+ ): MouseMoveResult ;
1388
+
1389
+ // @public (undocumented)
1390
+ export function useOnMouseMove<T extends Element >(
1391
+ el : Ref <T | null >,
1392
+ wait : number
1393
+ ): MouseMoveResult ;
1394
+
1385
1395
// @public (undocumented)
1386
1396
export function useOnMouseMove(
1387
1397
el : RefElement ,
@@ -1409,6 +1419,19 @@ export function useOnResize(
1409
1419
wait ? : number
1410
1420
): ResizeResult ;
1411
1421
1422
+ // @public (undocumented)
1423
+ export function useOnResize<T extends Element >(
1424
+ el : Ref <T > | Ref <T | null >,
1425
+ options ? : boolean | AddEventListenerOptions ,
1426
+ wait ? : number
1427
+ ): ResizeResult ;
1428
+
1429
+ // @public (undocumented)
1430
+ export function useOnResize<T extends Element >(
1431
+ el : Ref <T | null >,
1432
+ wait : number
1433
+ ): ResizeResult ;
1434
+
1412
1435
// @public (undocumented)
1413
1436
export function useOnScroll(): ScrollResult ;
1414
1437
@@ -1441,6 +1464,19 @@ export function useOnScroll(
1441
1464
wait ? : number
1442
1465
): ScrollResult ;
1443
1466
1467
+ // @public (undocumented)
1468
+ export function useOnScroll<T extends Element >(
1469
+ el : Ref <T > | Ref <T | null >,
1470
+ options ? : boolean | AddEventListenerOptions ,
1471
+ wait ? : number
1472
+ ): ScrollResult ;
1473
+
1474
+ // @public (undocumented)
1475
+ export function useOnScroll<T extends Element >(
1476
+ el : Ref <T | null >,
1477
+ wait : number
1478
+ ): ScrollResult ;
1479
+
1444
1480
// @public (undocumented)
1445
1481
export function usePageVisibility(): {
1446
1482
visibility: Ref <VisibilityState >;
@@ -1607,8 +1643,8 @@ export function useSessionStorage(
1607
1643
): LocalStorageReturn <string >;
1608
1644
1609
1645
// @public (undocumented)
1610
- export function useSessionStorage<T extends object = object >(
1611
- key : LocalStorageTyped < T > | string ,
1646
+ export function useSessionStorage<T >(
1647
+ key : string ,
1612
1648
defaultValue ? : RefTyped <T >,
1613
1649
sync ? : boolean
1614
1650
): LocalStorageReturn <T >;
@@ -1636,8 +1672,8 @@ export function useStorage(
1636
1672
): LocalStorageReturn <string >;
1637
1673
1638
1674
// @public (undocumented)
1639
- export function useStorage<T extends object = any >(
1640
- key : LocalStorageTyped < T > | string ,
1675
+ export function useStorage<T >(
1676
+ key : string ,
1641
1677
defaultValue ? : RefTyped <T >,
1642
1678
sync ? : boolean
1643
1679
): LocalStorageReturn <T >;
0 commit comments