MCPcopy
hub / github.com/ustbhuangyi/vue-analysis / GlobalAPI

Interface GlobalAPI

vue/flow/global-api.js:1–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1declare interface GlobalAPI {
2 cid: number;
3 options: Object;
4 config: Config;
5 util: Object;
6
7 extend: (options: Object) => Function;
8 set: <T>(target: Object | Array<T>, key: string | number, value: T) => T;
9 delete: <T>(target: Object| Array<T>, key: string | number) => void;
10 nextTick: (fn: Function, context?: Object) => void | Promise<*>;
11 use: (plugin: Function | Object) => void;
12 mixin: (mixin: Object) => void;
13 compile: (template: string) => { render: Function, staticRenderFns: Array<Function> };
14
15 directive: (id: string, def?: Function | Object) => Function | Object | void;
16 component: (id: string, def?: Class<Component> | Object) => Class<Component>;
17 filter: (id: string, def?: Function) => Function | void;
18
19 // allow dynamic method registration
20 [key: string]: any
21};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected