module.js 922 B

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