vue-async-computed
Advanced tools
Comparing version 3.8.1 to 3.8.2
{ | ||
"name": "vue-async-computed", | ||
"version": "3.8.1", | ||
"version": "3.8.2", | ||
"description": "Async computed properties for Vue", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-async-computed.js", |
@@ -1,2 +0,2 @@ | ||
import Vue, { PluginFunction } from "vue"; | ||
import Vue, { PluginFunction } from 'vue'; | ||
@@ -15,4 +15,5 @@ export interface IAsyncComputedOptions { | ||
type AsyncComputedGetter<T> = () => Promise<T>; | ||
interface IAsyncComputedValue<T> { | ||
export type AsyncComputedGetter<T> = () => Promise<T>; | ||
export interface IAsyncComputedValue<T> { | ||
default?: T | (() => T); | ||
@@ -25,14 +26,8 @@ get: AsyncComputedGetter<T>; | ||
interface AsyncComputedObject { | ||
export interface AsyncComputedObject { | ||
[K: string]: AsyncComputedGetter<any> | IAsyncComputedValue<any>; | ||
} | ||
declare module "vue/types/options" { | ||
interface ComponentOptions<V extends Vue> { | ||
asyncComputed?: AsyncComputedObject; | ||
} | ||
} | ||
interface IASyncComputedState { | ||
state: "updating" | "success" | "error"; | ||
export interface IASyncComputedState { | ||
state: 'updating' | 'success' | 'error'; | ||
updating: boolean; | ||
@@ -45,6 +40,12 @@ success: boolean; | ||
declare module "vue/types/vue" { | ||
declare module 'vue/types/options' { | ||
interface ComponentOptions<V extends Vue> { | ||
asyncComputed?: AsyncComputedObject; | ||
} | ||
} | ||
declare module 'vue/types/vue' { | ||
interface Vue { | ||
$asyncComputed: { [K: string]: IASyncComputedState }; | ||
$asyncComputed: {[K: string]: IASyncComputedState}; | ||
} | ||
} |
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
54488