"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "types/options.d.ts" between
vue-2.6.13.tar.gz and vue-2.6.14.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

options.d.ts  (vue-2.6.13):options.d.ts  (vue-2.6.14)
skipping to change at line 15 skipping to change at line 15
new (...args: any[]): any; new (...args: any[]): any;
} }
// we don't support infer props in async component // we don't support infer props in async component
// N.B. ComponentOptions<V> is contravariant, the default generic should be bott om type // N.B. ComponentOptions<V> is contravariant, the default generic should be bott om type
export type Component<Data=DefaultData<never>, Methods=DefaultMethods<never>, Co mputed=DefaultComputed, Props=DefaultProps> = export type Component<Data=DefaultData<never>, Methods=DefaultMethods<never>, Co mputed=DefaultComputed, Props=DefaultProps> =
| typeof Vue | typeof Vue
| FunctionalComponentOptions<Props> | FunctionalComponentOptions<Props>
| ComponentOptions<never, Data, Methods, Computed, Props> | ComponentOptions<never, Data, Methods, Computed, Props>
interface EsModuleComponent { type EsModule<T> = T | { default: T }
default: Component
} type ImportedComponent<Data=DefaultData<never>, Methods=DefaultMethods<never>, C
omputed=DefaultComputed, Props=DefaultProps>
= EsModule<Component<Data, Methods, Computed, Props>>
export type AsyncComponent<Data=DefaultData<never>, Methods=DefaultMethods<never >, Computed=DefaultComputed, Props=DefaultProps> export type AsyncComponent<Data=DefaultData<never>, Methods=DefaultMethods<never >, Computed=DefaultComputed, Props=DefaultProps>
= AsyncComponentPromise<Data, Methods, Computed, Props> = AsyncComponentPromise<Data, Methods, Computed, Props>
| AsyncComponentFactory<Data, Methods, Computed, Props> | AsyncComponentFactory<Data, Methods, Computed, Props>
export type AsyncComponentPromise<Data=DefaultData<never>, Methods=DefaultMethod s<never>, Computed=DefaultComputed, Props=DefaultProps> = ( export type AsyncComponentPromise<Data=DefaultData<never>, Methods=DefaultMethod s<never>, Computed=DefaultComputed, Props=DefaultProps> = (
resolve: (component: Component<Data, Methods, Computed, Props>) => void, resolve: (component: Component<Data, Methods, Computed, Props>) => void,
reject: (reason?: any) => void reject: (reason?: any) => void
) => Promise<Component | EsModuleComponent> | void; ) => Promise<ImportedComponent<Data, Methods, Computed, Props>> | void;
export type AsyncComponentFactory<Data=DefaultData<never>, Methods=DefaultMethod s<never>, Computed=DefaultComputed, Props=DefaultProps> = () => { export type AsyncComponentFactory<Data=DefaultData<never>, Methods=DefaultMethod s<never>, Computed=DefaultComputed, Props=DefaultProps> = () => {
component: AsyncComponentPromise<Data, Methods, Computed, Props>; component: Promise<ImportedComponent<Data, Methods, Computed, Props>>;
loading?: Component | EsModuleComponent; loading?: ImportedComponent;
error?: Component | EsModuleComponent; error?: ImportedComponent;
delay?: number; delay?: number;
timeout?: number; timeout?: number;
} }
/** /**
* When the `Computed` type parameter on `ComponentOptions` is inferred, * When the `Computed` type parameter on `ComponentOptions` is inferred,
* it should have a property with the return type of every get-accessor. * it should have a property with the return type of every get-accessor.
* Since there isn't a way to query for the return type of a function, we allow TypeScript * Since there isn't a way to query for the return type of a function, we allow TypeScript
* to infer from the shape of `Accessors<Computed>` and work backwards. * to infer from the shape of `Accessors<Computed>` and work backwards.
*/ */
 End of changes. 3 change blocks. 
7 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)