@histoire/vendors
Advanced tools
Comparing version 0.10.2 to 0.10.3
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" |
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" |
{ | ||
"name": "@histoire/vendors", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "Bundled vendors for histoire", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
3494735
87856