Comparing version 0.13.7 to 0.13.8
import Vue from 'vue' | ||
import type { PluginFunction, PluginObject, VueConstructor, VNode, VNodeDirective } from 'vue' | ||
import type { PluginFunction, PluginObject, VueConstructor, Directive, InjectionKey } from 'vue' | ||
@@ -23,19 +23,2 @@ declare const isVue2: boolean | ||
// #region createApp polyfill | ||
export type DirectiveModifiers = Record<string, boolean> | ||
export interface DirectiveBinding<V> extends Readonly<VNodeDirective> { | ||
readonly modifiers: DirectiveModifiers | ||
readonly value: V | ||
readonly oldValue: V | null | ||
} | ||
export type DirectiveHook<T = any, Prev = VNode | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode, prevVNode: Prev) => void | ||
export interface ObjectDirective<T = any, V = any> { | ||
bind?: DirectiveHook<T, any, V> | ||
inserted?: DirectiveHook<T, any, V> | ||
update?: DirectiveHook<T, any, V> | ||
componentUpdated?: DirectiveHook<T, any, V> | ||
unbind?: DirectiveHook<T, any, V> | ||
} | ||
export type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V> | ||
export type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V> | ||
export interface InjectionKey<T> extends Symbol {} | ||
export interface App<T = any> { | ||
@@ -48,3 +31,3 @@ config: VueConstructor['config'] | ||
directive(name: string, directive: Directive): this | ||
provide<T>(key: InjectionKey<T> | symbol | string, value: T): this | ||
provide<T>(key: InjectionKey<T> | string, value: T): this | ||
mount: Vue['$mount'] | ||
@@ -51,0 +34,0 @@ unmount: Vue['$destroy'] |
{ | ||
"name": "vue-demi", | ||
"version": "0.13.7", | ||
"version": "0.13.8", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -217,2 +217,4 @@ <p align="center"> | ||
- [vue-rough-notation](https://github.com/Leecason/vue-rough-notation) - RoughNotation wrapper component for Vue 2 and 3. | ||
- [vue-request](https://github.com/AttoJS/vue-request) - Vue composition API for data fetching, supports SWR, polling, error retry, cache request, pagination, etc. | ||
- [vue3-lazyload](https://github.com/murongg/vue3-lazyload) - A vue3.x image lazyload plugin. | ||
- [vue-codemirror6](https://github.com/logue/vue-codemirror6) - CodeMirror6 component for Vue2 and 3. | ||
@@ -219,0 +221,0 @@ > open a PR to add your library ;) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
229
24540
549