@vueuse/metadata 10.2.1 → 10.4.0

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.
package/index.cjs CHANGED
@@ -268,7 +268,7 @@ var functions$1 = [
268
268
  {
269
269
  name: "createReusableTemplate",
270
270
  "package": "core",
271
- lastUpdated: 1682582034000,
271
+ lastUpdated: 1690723585000,
272
272
  docs: "https://vueuse.org/core/createReusableTemplate/",
273
273
  category: "Component",
274
274
  description: "define and reuse template inside the component scope"
@@ -398,7 +398,7 @@ var functions$1 = [
398
398
  {
399
399
  name: "onClickOutside",
400
400
  "package": "core",
401
- lastUpdated: 1683316413000,
401
+ lastUpdated: 1690717940000,
402
402
  component: true,
403
403
  directive: true,
404
404
  docs: "https://vueuse.org/core/onClickOutside/",
@@ -408,16 +408,16 @@ var functions$1 = [
408
408
  {
409
409
  name: "onKeyStroke",
410
410
  "package": "core",
411
- lastUpdated: 1681372607000,
411
+ lastUpdated: 1690803239000,
412
412
  directive: true,
413
413
  docs: "https://vueuse.org/core/onKeyStroke/",
414
414
  category: "Sensors",
415
- description: "listen for keyboard key being stroked"
415
+ description: "listen for keyboard keystrokes"
416
416
  },
417
417
  {
418
418
  name: "onLongPress",
419
419
  "package": "core",
420
- lastUpdated: 1661746302000,
420
+ lastUpdated: 1690717950000,
421
421
  component: true,
422
422
  directive: true,
423
423
  docs: "https://vueuse.org/core/onLongPress/",
@@ -457,7 +457,7 @@ var functions$1 = [
457
457
  {
458
458
  name: "reactiveComputed",
459
459
  "package": "shared",
460
- lastUpdated: 1645876129000,
460
+ lastUpdated: 1690729590000,
461
461
  docs: "https://vueuse.org/shared/reactiveComputed/",
462
462
  category: "Reactivity",
463
463
  description: "computed reactive object"
@@ -481,7 +481,7 @@ var functions$1 = [
481
481
  {
482
482
  name: "refAutoReset",
483
483
  "package": "shared",
484
- lastUpdated: 1681372607000,
484
+ lastUpdated: 1692962819000,
485
485
  docs: "https://vueuse.org/shared/refAutoReset/",
486
486
  category: "Reactivity",
487
487
  description: "a ref which will be reset to the default value after some time",
@@ -552,7 +552,7 @@ var functions$1 = [
552
552
  {
553
553
  name: "syncRef",
554
554
  "package": "shared",
555
- lastUpdated: 1658655180000,
555
+ lastUpdated: 1692981119000,
556
556
  docs: "https://vueuse.org/shared/syncRef/",
557
557
  category: "Reactivity",
558
558
  description: "two-way refs synchronization",
@@ -590,7 +590,7 @@ var functions$1 = [
590
590
  {
591
591
  name: "toReactive",
592
592
  "package": "shared",
593
- lastUpdated: 1681373709000,
593
+ lastUpdated: 1690729590000,
594
594
  docs: "https://vueuse.org/shared/toReactive/",
595
595
  category: "Reactivity",
596
596
  description: "converts ref to reactive"
@@ -612,7 +612,7 @@ var functions$1 = [
612
612
  {
613
613
  name: "toRefs",
614
614
  "package": "shared",
615
- lastUpdated: 1687334077000,
615
+ lastUpdated: 1690722634000,
616
616
  docs: "https://vueuse.org/shared/toRefs/",
617
617
  category: "Reactivity",
618
618
  description: "extended [`toRefs`](https://v3.vuejs.org/api/refs-api.html#torefs) that also accepts refs of an object"
@@ -682,7 +682,7 @@ var functions$1 = [
682
682
  {
683
683
  name: "until",
684
684
  "package": "shared",
685
- lastUpdated: 1681372607000,
685
+ lastUpdated: 1690225787000,
686
686
  docs: "https://vueuse.org/shared/until/",
687
687
  category: "Watch",
688
688
  description: "promised one-time watch for changes"
@@ -698,7 +698,7 @@ var functions$1 = [
698
698
  {
699
699
  name: "useActiveElement",
700
700
  "package": "core",
701
- lastUpdated: 1672753027000,
701
+ lastUpdated: 1690724983000,
702
702
  component: true,
703
703
  docs: "https://vueuse.org/core/useActiveElement/",
704
704
  category: "Elements",
@@ -707,7 +707,7 @@ var functions$1 = [
707
707
  {
708
708
  name: "useAnimate",
709
709
  "package": "core",
710
- lastUpdated: 1686917986000,
710
+ lastUpdated: 1690717950000,
711
711
  docs: "https://vueuse.org/core/useAnimate/",
712
712
  category: "Animation",
713
713
  description: "reactive [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API)"
@@ -811,7 +811,7 @@ var functions$1 = [
811
811
  {
812
812
  name: "useAsyncQueue",
813
813
  "package": "core",
814
- lastUpdated: 1684138266000,
814
+ lastUpdated: 1692963122000,
815
815
  docs: "https://vueuse.org/core/useAsyncQueue/",
816
816
  category: "Utilities",
817
817
  description: "executes each asynchronous task sequentially and passes the current task result to the next task"
@@ -871,7 +871,7 @@ var functions$1 = [
871
871
  {
872
872
  name: "useBattery",
873
873
  "package": "core",
874
- lastUpdated: 1657430593000,
874
+ lastUpdated: 1690717950000,
875
875
  component: true,
876
876
  docs: "https://vueuse.org/core/useBattery/",
877
877
  category: "Sensors",
@@ -946,7 +946,7 @@ var functions$1 = [
946
946
  {
947
947
  name: "useClipboard",
948
948
  "package": "core",
949
- lastUpdated: 1681372607000,
949
+ lastUpdated: 1690717950000,
950
950
  docs: "https://vueuse.org/core/useClipboard/",
951
951
  category: "Browser",
952
952
  description: "reactive [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API)"
@@ -993,7 +993,7 @@ var functions$1 = [
993
993
  {
994
994
  name: "useCounter",
995
995
  "package": "shared",
996
- lastUpdated: 1666677599000,
996
+ lastUpdated: 1690717970000,
997
997
  docs: "https://vueuse.org/shared/useCounter/",
998
998
  category: "Utilities",
999
999
  description: "basic counter with utility functions"
@@ -1039,7 +1039,7 @@ var functions$1 = [
1039
1039
  {
1040
1040
  name: "useDateFormat",
1041
1041
  "package": "shared",
1042
- lastUpdated: 1682003983000,
1042
+ lastUpdated: 1690730131000,
1043
1043
  docs: "https://vueuse.org/shared/useDateFormat/",
1044
1044
  category: "Time",
1045
1045
  description: "get the formatted date according to the string of tokens passed in"
@@ -1129,7 +1129,7 @@ var functions$1 = [
1129
1129
  {
1130
1130
  name: "useDraggable",
1131
1131
  "package": "core",
1132
- lastUpdated: 1681376720000,
1132
+ lastUpdated: 1692970893000,
1133
1133
  component: true,
1134
1134
  docs: "https://vueuse.org/core/useDraggable/",
1135
1135
  category: "Elements",
@@ -1205,7 +1205,7 @@ var functions$1 = [
1205
1205
  {
1206
1206
  name: "useElementVisibility",
1207
1207
  "package": "core",
1208
- lastUpdated: 1681372607000,
1208
+ lastUpdated: 1692963970000,
1209
1209
  component: true,
1210
1210
  directive: true,
1211
1211
  docs: "https://vueuse.org/core/useElementVisibility/",
@@ -1223,7 +1223,7 @@ var functions$1 = [
1223
1223
  {
1224
1224
  name: "useEventListener",
1225
1225
  "package": "core",
1226
- lastUpdated: 1681402164000,
1226
+ lastUpdated: 1690717950000,
1227
1227
  docs: "https://vueuse.org/core/useEventListener/",
1228
1228
  category: "Browser",
1229
1229
  description: "use EventListener with ease"
@@ -1256,7 +1256,7 @@ var functions$1 = [
1256
1256
  {
1257
1257
  name: "useFetch",
1258
1258
  "package": "core",
1259
- lastUpdated: 1682983932000,
1259
+ lastUpdated: 1692982865000,
1260
1260
  docs: "https://vueuse.org/core/useFetch/",
1261
1261
  category: "Network",
1262
1262
  description: "reactive [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides the ability to abort requests"
@@ -1272,7 +1272,7 @@ var functions$1 = [
1272
1272
  {
1273
1273
  name: "useFileSystemAccess",
1274
1274
  "package": "core",
1275
- lastUpdated: 1681373709000,
1275
+ lastUpdated: 1692964290000,
1276
1276
  docs: "https://vueuse.org/core/useFileSystemAccess/",
1277
1277
  category: "Browser",
1278
1278
  description: "create and read and write local files with [FileSystemAccessAPI](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API)"
@@ -1297,7 +1297,7 @@ var functions$1 = [
1297
1297
  {
1298
1298
  name: "useFocus",
1299
1299
  "package": "core",
1300
- lastUpdated: 1674992405000,
1300
+ lastUpdated: 1690717931000,
1301
1301
  docs: "https://vueuse.org/core/useFocus/",
1302
1302
  category: "Sensors",
1303
1303
  description: "reactive utility to track or set the focus state of a DOM element"
@@ -1357,7 +1357,7 @@ var functions$1 = [
1357
1357
  {
1358
1358
  name: "useGeolocation",
1359
1359
  "package": "core",
1360
- lastUpdated: 1679560979000,
1360
+ lastUpdated: 1690225787000,
1361
1361
  component: true,
1362
1362
  docs: "https://vueuse.org/core/useGeolocation/",
1363
1363
  category: "Sensors",
@@ -1373,7 +1373,7 @@ var functions$1 = [
1373
1373
  {
1374
1374
  name: "useIDBKeyval",
1375
1375
  "package": "integrations",
1376
- lastUpdated: 1681372607000,
1376
+ lastUpdated: 1692963543000,
1377
1377
  docs: "https://vueuse.org/integrations/useIDBKeyval/",
1378
1378
  category: "@Integrations",
1379
1379
  description: "wrapper for [`idb-keyval`](https://www.npmjs.com/package/idb-keyval)",
@@ -1400,7 +1400,7 @@ var functions$1 = [
1400
1400
  {
1401
1401
  name: "useInfiniteScroll",
1402
1402
  "package": "core",
1403
- lastUpdated: 1687945394000,
1403
+ lastUpdated: 1692975359000,
1404
1404
  directive: true,
1405
1405
  docs: "https://vueuse.org/core/useInfiniteScroll/",
1406
1406
  category: "Sensors",
@@ -1494,7 +1494,7 @@ var functions$1 = [
1494
1494
  {
1495
1495
  name: "useMagicKeys",
1496
1496
  "package": "core",
1497
- lastUpdated: 1681373709000,
1497
+ lastUpdated: 1690225787000,
1498
1498
  docs: "https://vueuse.org/core/useMagicKeys/",
1499
1499
  category: "Sensors",
1500
1500
  description: "reactive keys pressed state"
@@ -1502,7 +1502,7 @@ var functions$1 = [
1502
1502
  {
1503
1503
  name: "useManualRefHistory",
1504
1504
  "package": "core",
1505
- lastUpdated: 1682524872000,
1505
+ lastUpdated: 1690225787000,
1506
1506
  docs: "https://vueuse.org/core/useManualRefHistory/",
1507
1507
  category: "State",
1508
1508
  description: "manually track the change history of a ref when the using calls `commit()`",
@@ -1537,7 +1537,7 @@ var functions$1 = [
1537
1537
  {
1538
1538
  name: "useMediaQuery",
1539
1539
  "package": "core",
1540
- lastUpdated: 1681372607000,
1540
+ lastUpdated: 1690722655000,
1541
1541
  docs: "https://vueuse.org/core/useMediaQuery/",
1542
1542
  category: "Browser",
1543
1543
  description: "reactive [Media Query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries)"
@@ -1598,7 +1598,7 @@ var functions$1 = [
1598
1598
  {
1599
1599
  name: "useMouse",
1600
1600
  "package": "core",
1601
- lastUpdated: 1682154126000,
1601
+ lastUpdated: 1692979736000,
1602
1602
  component: true,
1603
1603
  docs: "https://vueuse.org/core/useMouse/",
1604
1604
  category: "Sensors",
@@ -1668,7 +1668,7 @@ var functions$1 = [
1668
1668
  {
1669
1669
  name: "useObjectUrl",
1670
1670
  "package": "core",
1671
- lastUpdated: 1681373709000,
1671
+ lastUpdated: 1690722569000,
1672
1672
  component: true,
1673
1673
  docs: "https://vueuse.org/core/useObjectUrl/",
1674
1674
  category: "Browser",
@@ -1685,7 +1685,7 @@ var functions$1 = [
1685
1685
  {
1686
1686
  name: "useOffsetPagination",
1687
1687
  "package": "core",
1688
- lastUpdated: 1681374342000,
1688
+ lastUpdated: 1690225787000,
1689
1689
  component: true,
1690
1690
  docs: "https://vueuse.org/core/useOffsetPagination/",
1691
1691
  category: "Utilities",
@@ -1747,7 +1747,7 @@ var functions$1 = [
1747
1747
  {
1748
1748
  name: "usePointer",
1749
1749
  "package": "core",
1750
- lastUpdated: 1681425913000,
1750
+ lastUpdated: 1690723812000,
1751
1751
  component: true,
1752
1752
  docs: "https://vueuse.org/core/usePointer/",
1753
1753
  category: "Sensors",
@@ -1896,7 +1896,7 @@ var functions$1 = [
1896
1896
  {
1897
1897
  name: "useRouteHash",
1898
1898
  "package": "router",
1899
- lastUpdated: 1683625976000,
1899
+ lastUpdated: 1690718020000,
1900
1900
  docs: "https://vueuse.org/router/useRouteHash/",
1901
1901
  category: "@Router",
1902
1902
  description: "shorthand for a reactive `route.hash`"
@@ -1904,7 +1904,7 @@ var functions$1 = [
1904
1904
  {
1905
1905
  name: "useRouteParams",
1906
1906
  "package": "router",
1907
- lastUpdated: 1683625976000,
1907
+ lastUpdated: 1690718020000,
1908
1908
  docs: "https://vueuse.org/router/useRouteParams/",
1909
1909
  category: "@Router",
1910
1910
  description: "shorthand for a reactive `route.params`"
@@ -1912,7 +1912,7 @@ var functions$1 = [
1912
1912
  {
1913
1913
  name: "useRouteQuery",
1914
1914
  "package": "router",
1915
- lastUpdated: 1683625976000,
1915
+ lastUpdated: 1690718020000,
1916
1916
  docs: "https://vueuse.org/router/useRouteQuery/",
1917
1917
  category: "@Router",
1918
1918
  description: "shorthand for a reactive `route.query`"
@@ -1920,7 +1920,7 @@ var functions$1 = [
1920
1920
  {
1921
1921
  name: "useRTDB",
1922
1922
  "package": "firebase",
1923
- lastUpdated: 1658645224000,
1923
+ lastUpdated: 1690729883000,
1924
1924
  docs: "https://vueuse.org/firebase/useRTDB/",
1925
1925
  category: "@Firebase",
1926
1926
  description: "reactive [Firebase Realtime Database](https://firebase.google.com/docs/database) binding",
@@ -1936,7 +1936,7 @@ var functions$1 = [
1936
1936
  {
1937
1937
  name: "useScreenOrientation",
1938
1938
  "package": "core",
1939
- lastUpdated: 1680167214000,
1939
+ lastUpdated: 1692975359000,
1940
1940
  docs: "https://vueuse.org/core/useScreenOrientation/",
1941
1941
  category: "Browser",
1942
1942
  description: "reactive [Screen Orientation API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Orientation_API)"
@@ -1961,7 +1961,7 @@ var functions$1 = [
1961
1961
  {
1962
1962
  name: "useScroll",
1963
1963
  "package": "core",
1964
- lastUpdated: 1684138239000,
1964
+ lastUpdated: 1692964384000,
1965
1965
  directive: true,
1966
1966
  docs: "https://vueuse.org/core/useScroll/",
1967
1967
  category: "Sensors",
@@ -1970,7 +1970,7 @@ var functions$1 = [
1970
1970
  {
1971
1971
  name: "useScrollLock",
1972
1972
  "package": "core",
1973
- lastUpdated: 1683624968000,
1973
+ lastUpdated: 1692975359000,
1974
1974
  directive: true,
1975
1975
  docs: "https://vueuse.org/core/useScrollLock/",
1976
1976
  category: "Sensors",
@@ -1998,7 +1998,7 @@ var functions$1 = [
1998
1998
  {
1999
1999
  name: "useSortable",
2000
2000
  "package": "integrations",
2001
- lastUpdated: 1686083763000,
2001
+ lastUpdated: 1692962420000,
2002
2002
  component: true,
2003
2003
  docs: "https://vueuse.org/integrations/useSortable/",
2004
2004
  category: "@Integrations",
@@ -2008,7 +2008,7 @@ var functions$1 = [
2008
2008
  {
2009
2009
  name: "useSorted",
2010
2010
  "package": "core",
2011
- lastUpdated: 1681373709000,
2011
+ lastUpdated: 1690723207000,
2012
2012
  docs: "https://vueuse.org/core/useSorted/",
2013
2013
  category: "Array",
2014
2014
  description: "reactive sort array"
@@ -2031,7 +2031,7 @@ var functions$1 = [
2031
2031
  {
2032
2032
  name: "useSpeechSynthesis",
2033
2033
  "package": "core",
2034
- lastUpdated: 1681373709000,
2034
+ lastUpdated: 1690724174000,
2035
2035
  docs: "https://vueuse.org/core/useSpeechSynthesis/",
2036
2036
  category: "Sensors",
2037
2037
  description: "reactive [SpeechSynthesis](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis)"
@@ -2054,7 +2054,7 @@ var functions$1 = [
2054
2054
  {
2055
2055
  name: "useStorage",
2056
2056
  "package": "core",
2057
- lastUpdated: 1681402164000,
2057
+ lastUpdated: 1692980496000,
2058
2058
  docs: "https://vueuse.org/core/useStorage/",
2059
2059
  category: "State",
2060
2060
  description: "reactive [LocalStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)/[SessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)",
@@ -2080,7 +2080,7 @@ var functions$1 = [
2080
2080
  {
2081
2081
  name: "useStyleTag",
2082
2082
  "package": "core",
2083
- lastUpdated: 1669416726000,
2083
+ lastUpdated: 1688031328000,
2084
2084
  docs: "https://vueuse.org/core/useStyleTag/",
2085
2085
  category: "Browser",
2086
2086
  description: "inject reactive `style` element in head"
@@ -2120,7 +2120,7 @@ var functions$1 = [
2120
2120
  {
2121
2121
  name: "useSwipe",
2122
2122
  "package": "core",
2123
- lastUpdated: 1682154047000,
2123
+ lastUpdated: 1690717950000,
2124
2124
  docs: "https://vueuse.org/core/useSwipe/",
2125
2125
  category: "Sensors",
2126
2126
  description: "reactive swipe detection based on [`TouchEvents`](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent)"
@@ -2152,7 +2152,7 @@ var functions$1 = [
2152
2152
  {
2153
2153
  name: "useTextSelection",
2154
2154
  "package": "core",
2155
- lastUpdated: 1646469737000,
2155
+ lastUpdated: 1690226818000,
2156
2156
  docs: "https://vueuse.org/core/useTextSelection/",
2157
2157
  category: "Sensors",
2158
2158
  description: "reactively track user text selection based on [`Window.getSelection`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection)"
@@ -2185,7 +2185,7 @@ var functions$1 = [
2185
2185
  {
2186
2186
  name: "useTimeAgo",
2187
2187
  "package": "core",
2188
- lastUpdated: 1683363330000,
2188
+ lastUpdated: 1690225787000,
2189
2189
  component: true,
2190
2190
  docs: "https://vueuse.org/core/useTimeAgo/",
2191
2191
  category: "Time",
@@ -2313,7 +2313,7 @@ var functions$1 = [
2313
2313
  {
2314
2314
  name: "useVModel",
2315
2315
  "package": "core",
2316
- lastUpdated: 1686917986000,
2316
+ lastUpdated: 1691512689000,
2317
2317
  docs: "https://vueuse.org/core/useVModel/",
2318
2318
  category: "Component",
2319
2319
  description: "shorthand for v-model binding",
@@ -2343,7 +2343,7 @@ var functions$1 = [
2343
2343
  {
2344
2344
  name: "useWebNotification",
2345
2345
  "package": "core",
2346
- lastUpdated: 1680167214000,
2346
+ lastUpdated: 1692964270000,
2347
2347
  docs: "https://vueuse.org/core/useWebNotification/",
2348
2348
  category: "Browser",
2349
2349
  description: "reactive [Notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)"
@@ -2351,7 +2351,7 @@ var functions$1 = [
2351
2351
  {
2352
2352
  name: "useWebSocket",
2353
2353
  "package": "core",
2354
- lastUpdated: 1681372607000,
2354
+ lastUpdated: 1692975287000,
2355
2355
  docs: "https://vueuse.org/core/useWebSocket/",
2356
2356
  category: "Network",
2357
2357
  description: "reactive [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket) client"
@@ -2370,7 +2370,7 @@ var functions$1 = [
2370
2370
  {
2371
2371
  name: "useWebWorkerFn",
2372
2372
  "package": "core",
2373
- lastUpdated: 1680167214000,
2373
+ lastUpdated: 1692981095000,
2374
2374
  docs: "https://vueuse.org/core/useWebWorkerFn/",
2375
2375
  category: "Browser",
2376
2376
  description: "run expensive functions without blocking the UI",
@@ -2398,7 +2398,7 @@ var functions$1 = [
2398
2398
  {
2399
2399
  name: "useWindowSize",
2400
2400
  "package": "core",
2401
- lastUpdated: 1681306839000,
2401
+ lastUpdated: 1690225787000,
2402
2402
  component: true,
2403
2403
  docs: "https://vueuse.org/core/useWindowSize/",
2404
2404
  category: "Elements",
@@ -2423,13 +2423,13 @@ var functions$1 = [
2423
2423
  {
2424
2424
  name: "utils",
2425
2425
  "package": "shared",
2426
- lastUpdated: 1686084730000,
2426
+ lastUpdated: 1690715050000,
2427
2427
  internal: true
2428
2428
  },
2429
2429
  {
2430
2430
  name: "watchArray",
2431
2431
  "package": "shared",
2432
- lastUpdated: 1681373709000,
2432
+ lastUpdated: 1690225787000,
2433
2433
  docs: "https://vueuse.org/shared/watchArray/",
2434
2434
  category: "Watch",
2435
2435
  description: "watch for an array with additions and removals"
package/index.d.cts ADDED
@@ -0,0 +1,76 @@
1
+ interface PackageManifest {
2
+ name: string;
3
+ display: string;
4
+ addon?: boolean;
5
+ author?: string;
6
+ description?: string;
7
+ external?: string[];
8
+ globals?: Record<string, string>;
9
+ manualImport?: boolean;
10
+ deprecated?: boolean;
11
+ submodules?: boolean;
12
+ build?: boolean;
13
+ iife?: boolean;
14
+ cjs?: boolean;
15
+ mjs?: boolean;
16
+ dts?: boolean;
17
+ target?: string;
18
+ utils?: boolean;
19
+ copy?: string[];
20
+ }
21
+ interface VueUseFunction {
22
+ name: string;
23
+ package: string;
24
+ importPath?: string;
25
+ lastUpdated?: number;
26
+ category?: string;
27
+ description?: string;
28
+ docs?: string;
29
+ deprecated?: boolean;
30
+ internal?: boolean;
31
+ component?: boolean;
32
+ directive?: boolean;
33
+ external?: string;
34
+ alias?: string[];
35
+ related?: string[];
36
+ }
37
+ interface VueUsePackage extends PackageManifest {
38
+ dir: string;
39
+ docs?: string;
40
+ }
41
+ interface PackageIndexes {
42
+ packages: Record<string, VueUsePackage>;
43
+ categories: string[];
44
+ functions: VueUseFunction[];
45
+ }
46
+ interface CommitInfo {
47
+ functions: string[];
48
+ version?: string;
49
+ hash: string;
50
+ date: string;
51
+ message: string;
52
+ refs?: string;
53
+ body?: string;
54
+ author_name: string;
55
+ author_email: string;
56
+ }
57
+ interface ContributorInfo {
58
+ name: string;
59
+ count: number;
60
+ hash: string;
61
+ }
62
+
63
+ declare const metadata: PackageIndexes;
64
+ declare const functions: VueUseFunction[];
65
+ declare const packages: Record<string, VueUsePackage>;
66
+ declare const categories: string[];
67
+ declare const functionNames: string[];
68
+ declare const categoryNames: string[];
69
+ declare const coreCategoryNames: string[];
70
+ declare const addonCategoryNames: string[];
71
+ declare function getFunction(name: string): VueUseFunction | undefined;
72
+
73
+ declare function getCategories(functions: VueUseFunction[]): string[];
74
+ declare function uniq<T extends any[]>(a: T): any[];
75
+
76
+ export { type CommitInfo, type ContributorInfo, type PackageIndexes, type PackageManifest, type VueUseFunction, type VueUsePackage, addonCategoryNames, categories, categoryNames, coreCategoryNames, functionNames, functions, getCategories, getFunction, metadata, packages, uniq };
package/index.d.mts ADDED
@@ -0,0 +1,76 @@
1
+ interface PackageManifest {
2
+ name: string;
3
+ display: string;
4
+ addon?: boolean;
5
+ author?: string;
6
+ description?: string;
7
+ external?: string[];
8
+ globals?: Record<string, string>;
9
+ manualImport?: boolean;
10
+ deprecated?: boolean;
11
+ submodules?: boolean;
12
+ build?: boolean;
13
+ iife?: boolean;
14
+ cjs?: boolean;
15
+ mjs?: boolean;
16
+ dts?: boolean;
17
+ target?: string;
18
+ utils?: boolean;
19
+ copy?: string[];
20
+ }
21
+ interface VueUseFunction {
22
+ name: string;
23
+ package: string;
24
+ importPath?: string;
25
+ lastUpdated?: number;
26
+ category?: string;
27
+ description?: string;
28
+ docs?: string;
29
+ deprecated?: boolean;
30
+ internal?: boolean;
31
+ component?: boolean;
32
+ directive?: boolean;
33
+ external?: string;
34
+ alias?: string[];
35
+ related?: string[];
36
+ }
37
+ interface VueUsePackage extends PackageManifest {
38
+ dir: string;
39
+ docs?: string;
40
+ }
41
+ interface PackageIndexes {
42
+ packages: Record<string, VueUsePackage>;
43
+ categories: string[];
44
+ functions: VueUseFunction[];
45
+ }
46
+ interface CommitInfo {
47
+ functions: string[];
48
+ version?: string;
49
+ hash: string;
50
+ date: string;
51
+ message: string;
52
+ refs?: string;
53
+ body?: string;
54
+ author_name: string;
55
+ author_email: string;
56
+ }
57
+ interface ContributorInfo {
58
+ name: string;
59
+ count: number;
60
+ hash: string;
61
+ }
62
+
63
+ declare const metadata: PackageIndexes;
64
+ declare const functions: VueUseFunction[];
65
+ declare const packages: Record<string, VueUsePackage>;
66
+ declare const categories: string[];
67
+ declare const functionNames: string[];
68
+ declare const categoryNames: string[];
69
+ declare const coreCategoryNames: string[];
70
+ declare const addonCategoryNames: string[];
71
+ declare function getFunction(name: string): VueUseFunction | undefined;
72
+
73
+ declare function getCategories(functions: VueUseFunction[]): string[];
74
+ declare function uniq<T extends any[]>(a: T): any[];
75
+
76
+ export { type CommitInfo, type ContributorInfo, type PackageIndexes, type PackageManifest, type VueUseFunction, type VueUsePackage, addonCategoryNames, categories, categoryNames, coreCategoryNames, functionNames, functions, getCategories, getFunction, metadata, packages, uniq };
package/index.d.ts CHANGED
@@ -73,4 +73,4 @@ declare function getFunction(name: string): VueUseFunction | undefined;
73
73
  declare function getCategories(functions: VueUseFunction[]): string[];
74
74
  declare function uniq<T extends any[]>(a: T): any[];
75
75
 
76
- export { CommitInfo, ContributorInfo, PackageIndexes, PackageManifest, VueUseFunction, VueUsePackage, addonCategoryNames, categories, categoryNames, coreCategoryNames, functionNames, functions, getCategories, getFunction, metadata, packages, uniq };
76
+ export { type CommitInfo, type ContributorInfo, type PackageIndexes, type PackageManifest, type VueUseFunction, type VueUsePackage, addonCategoryNames, categories, categoryNames, coreCategoryNames, functionNames, functions, getCategories, getFunction, metadata, packages, uniq };