UNPKG

922 BJavaScriptView Raw
1declare type $npm$Vue$Dictionaly<T> = { [key: string]: T }
2
3declare type Util = {
4 extend: (to: Object, from: ?Object) => Object,
5 hasOwn: (obj: Object, key: string) => boolean,
6 isPlainObject: (obj: any) => boolean,
7 isObject: (obj: mixed) => boolean,
8}
9
10declare type Config = {
11 optionMergeStrategies: $npm$Vue$Dictionaly<Function>,
12 silent: boolean,
13 productionTip: boolean,
14 performance: boolean,
15 devtools: boolean,
16 errorHandler: ?(err: Error, vm: Vue, info: string) => void,
17 ignoredElements: Array<string>,
18 keyCodes: $npm$Vue$Dictionaly<number>,
19 isReservedTag: (x?: string) => boolean,
20 parsePlatformTagName: (x: string) => string,
21 isUnknownElement: (x?: string) => boolean,
22 getTagNamespace: (x?: string) => string | void,
23 mustUseProp: (tag: string, type: ?string, name: string) => boolean,
24}
25
26declare interface Vue {
27 static config: Config,
28 static util: Util,
29 static version: string,
30}