Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vueuse/shared

Package Overview
Dependencies
Maintainers
1
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vueuse/shared - npm Package Compare versions

Comparing version 10.11.0 to 10.11.1

20

index.d.ts
import * as vue_demi from 'vue-demi';
import { WatchOptionsBase, Ref, ComputedRef, WritableComputedRef, WatchSource, ComputedGetter, WritableComputedOptions, WatchOptions, InjectionKey, ShallowUnwrapRef as ShallowUnwrapRef$1, inject, provide, UnwrapNestedRefs, UnwrapRef, ToRef, ToRefs, MaybeRef as MaybeRef$1, WatchCallback, WatchStopHandle } from 'vue-demi';
import { WatchOptionsBase, Ref, ComputedRef, WritableComputedRef, WatchSource, ComputedGetter, WritableComputedOptions, ShallowRef, WatchOptions, InjectionKey, ShallowUnwrapRef as ShallowUnwrapRef$1, inject, provide, UnwrapNestedRefs, UnwrapRef, ToRef, ToRefs, WatchCallback, WatchStopHandle } from 'vue-demi';

@@ -45,17 +45,9 @@ /**

/**
* Maybe it's a ref, or a plain value
*
* ```ts
* type MaybeRef<T> = T | Ref<T>
* ```
* Maybe it's a ref, or a plain value.
*/
type MaybeRef<T> = T | Ref<T>;
type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
/**
* Maybe it's a ref, or a plain value, or a getter function
*
* ```ts
* type MaybeRefOrGetter<T> = (() => T) | T | Ref<T> | ComputedRef<T>
* ```
* Maybe it's a ref, or a plain value, or a getter function.
*/
type MaybeRefOrGetter<T> = MaybeRef<T> | (() => T);
type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
/**

@@ -923,3 +915,3 @@ * Maybe it's a computed ref, or a readonly value, or a getter function

*/
declare function useCounter(initialValue?: MaybeRef$1<number>, options?: UseCounterOptions): {
declare function useCounter(initialValue?: MaybeRef<number>, options?: UseCounterOptions): {
count: vue_demi.Ref<number>;

@@ -926,0 +918,0 @@ inc: (delta?: number) => number;

{
"name": "@vueuse/shared",
"version": "10.11.0",
"version": "10.11.1",
"author": "Anthony Fu <https://github.com/antfu>",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc