Content-Length: 692808 | pFad | http://github.com/vueuse/vueuse/commit/118c28dc321419b9eebaaee122d8ae46e0c9ec6d

FA chore: update deps · vueuse/vueuse@118c28d · GitHub
Skip to content

Commit 118c28d

Browse files
committed
chore: update deps
1 parent 04af98c commit 118c28d

File tree

15 files changed

+1880
-1529
lines changed

15 files changed

+1880
-1529
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "13.3.0",
55
"private": true,
6-
"packageManager": "pnpm@10.11.0",
6+
"packageManager": "pnpm@10.12.1",
77
"description": "Collection of essential Vue Composition Utilities",
88
"author": "Anthony Fu<https://github.com/antfu>",
99
"license": "MIT",

packages/core/useAsyncState/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export interface UseAsyncStateReturnBase<Data, Params extends any[], Shallow ext
1111
executeImmediate: (...args: Params) => Promise<Data>
1212
}
1313

14-
export type UseAsyncStateReturn<Data, Params extends any[], Shallow extends boolean> =
15-
UseAsyncStateReturnBase<Data, Params, Shallow>
16-
& PromiseLike<UseAsyncStateReturnBase<Data, Params, Shallow>>
14+
export type UseAsyncStateReturn<Data, Params extends any[], Shallow extends boolean>
15+
= UseAsyncStateReturnBase<Data, Params, Shallow>
16+
& PromiseLike<UseAsyncStateReturnBase<Data, Params, Shallow>>
1717

1818
export interface UseAsyncStateOptions<Shallow extends boolean, D = any> {
1919
/**

packages/core/useColorMode/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export interface UseColorModeOptions<T extends string = BasicColorMode> extends
9292
disableTransition?: boolean
9393
}
9494

95-
export type UseColorModeReturn<T extends string = BasicColorMode> =
96-
Ref<T | BasicColorSchema> & {
95+
export type UseColorModeReturn<T extends string = BasicColorMode>
96+
= Ref<T | BasicColorSchema> & {
9797
store: Ref<T | BasicColorSchema>
9898
system: ComputedRef<BasicColorMode>
9999
state: ComputedRef<T | BasicColorMode>

packages/core/useElementSize/directive.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import type { ElementSize } from './index'
33
import { watch } from 'vue'
44
import { useElementSize } from './index'
55

6-
type RemoveFirstFromTuple<T extends any[]> =
7-
T['length'] extends 0 ? undefined :
8-
(((...b: T) => void) extends (a: any, ...b: infer I) => void ? I : [])
6+
type RemoveFirstFromTuple<T extends any[]>
7+
= T['length'] extends 0 ? undefined
8+
: (((...b: T) => void) extends (a: any, ...b: infer I) => void ? I : [])
99

1010
type BindingValueFunction = (size: ElementSize) => void
1111
type VElementSizeOptions = RemoveFirstFromTuple<Parameters<typeof useElementSize>>

packages/core/useElementSize/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default {
5050
```vue
5151
<script setup lang="ts">
5252
import { vElementSize } from '@vueuse/components'
53+
5354
function onResize({ width, height }: { width: number, height: number }) {
5455
console.log(width, height)
5556
}

packages/core/useMagicKeys/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export interface MagicKeysInternal {
5555
current: Set<string>
5656
}
5757

58-
export type UseMagicKeysReturn<Reactive extends boolean> =
59-
Readonly<
58+
export type UseMagicKeysReturn<Reactive extends boolean>
59+
= Readonly<
6060
Omit<Reactive extends true
6161
? Record<string, boolean>
6262
: Record<string, ComputedRef<boolean>>, keyof MagicKeysInternal>

packages/core/usePermission/index.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ import { defaultNavigator } from '../_configurable'
66
import { useEventListener } from '../useEventListener'
77
import { useSupported } from '../useSupported'
88

9-
type DescriptorNamePolyfill =
10-
'accelerometer' |
11-
'accessibility-events' |
12-
'ambient-light-sensor' |
13-
'background-sync' |
14-
'camera' |
15-
'clipboard-read' |
16-
'clipboard-write' |
17-
'gyroscope' |
18-
'magnetometer' |
19-
'microphone' |
20-
'notifications' |
21-
'payment-handler' |
22-
'persistent-storage' |
23-
'push' |
24-
'speaker' |
25-
'local-fonts'
9+
type DescriptorNamePolyfill
10+
= 'accelerometer'
11+
| 'accessibility-events'
12+
| 'ambient-light-sensor'
13+
| 'background-sync'
14+
| 'camera'
15+
| 'clipboard-read'
16+
| 'clipboard-write'
17+
| 'gyroscope'
18+
| 'magnetometer'
19+
| 'microphone'
20+
| 'notifications'
21+
| 'payment-handler'
22+
| 'persistent-storage'
23+
| 'push'
24+
| 'speaker'
25+
| 'local-fonts'
2626

27-
export type GeneralPermissionDescriptor =
28-
| PermissionDescriptor
29-
| { name: DescriptorNamePolyfill }
27+
export type GeneralPermissionDescriptor
28+
= | PermissionDescriptor
29+
| { name: DescriptorNamePolyfill }
3030

3131
export interface UsePermissionOptions<Controls extends boolean> extends ConfigurableNavigator {
3232
/**

packages/core/useScrollLock/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ isLocked.value = false // unlock
3030
```vue
3131
<script setup lang="ts">
3232
import { vScrollLock } from '@vueuse/components'
33+
3334
const data = ref([1, 2, 3, 4, 5, 6])
3435
const isLocked = ref(false)
3536
const toggleLock = useToggle(isLocked)

packages/core/useTextSelection/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Reactively track user text selection based on [`Window.getSelection`](https://de
1111
```vue
1212
<script setup lang="ts">
1313
import { useTextSelection } from '@vueuse/core'
14+
1415
const state = useTextSelection()
1516
</script>
1617

packages/core/useWebWorkerFn/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { ref as deepRef, shallowRef } from 'vue'
66
import { defaultWindow } from '../_configurable'
77
import createWorkerBlobUrl from './lib/createWorkerBlobUrl'
88

9-
export type WebWorkerStatus =
10-
| 'PENDING'
11-
| 'SUCCESS'
12-
| 'RUNNING'
13-
| 'ERROR'
14-
| 'TIMEOUT_EXPIRED'
9+
export type WebWorkerStatus
10+
= | 'PENDING'
11+
| 'SUCCESS'
12+
| 'RUNNING'
13+
| 'ERROR'
14+
| 'TIMEOUT_EXPIRED'
1515

1616
export interface UseWebWorkerOptions extends ConfigurableWindow {
1717
/**

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/vueuse/vueuse/commit/118c28dc321419b9eebaaee122d8ae46e0c9ec6d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy