You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
804 B
22 lines
804 B
declare interface GlobalAPI {
|
|
cid: number;
|
|
options: Object;
|
|
config: Config;
|
|
util: Object;
|
|
|
|
extend: (options: Object) => Function;
|
|
set: (obj: Object, key: string, value: any) => void;
|
|
delete: (obj: Object, key: string) => void;
|
|
nextTick: (fn: Function, context?: Object) => void;
|
|
use: (plugin: Function | Object) => void;
|
|
mixin: (mixin: Object) => void;
|
|
compile: (template: string) => { render: Function, staticRenderFns: Array<Function> };
|
|
|
|
directive: (id: string, def?: Function | Object) => Function | Object | void;
|
|
component: (id: string, def?: Class<Component> | Object) => Class<Component>;
|
|
transition: (id: string, def?: Object) => Object | void;
|
|
filter: (id: string, def?: Function) => Function | void;
|
|
|
|
// allow dynamic method registration
|
|
[key: string]: any
|
|
}
|
|
|