ctor.d.ts 877 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import SetupDefaults from './setupDefaults'
  2. /**
  3. * 版本信息
  4. */
  5. export const version: string
  6. /**
  7. * 设置全局配置
  8. * @param options 全局参数
  9. */
  10. export function setConfig(options: SetupDefaults): SetupDefaults;
  11. /**
  12. * 获取全局配置
  13. */
  14. export function getConfig(): SetupDefaults;
  15. export const VERSION: string
  16. export function setup(options: SetupDefaults): SetupDefaults;
  17. /**
  18. * 将您自己的实用函数扩展到 XEUtils
  19. * @param methods 函数集
  20. */
  21. export function mixin(...methods: {[key: string]: any}[]): void;
  22. export interface XEUtilsMethods {
  23. version: typeof version;
  24. setConfig: typeof setConfig;
  25. getConfig: typeof getConfig;
  26. mixin: typeof mixin;
  27. VERSION: typeof VERSION;
  28. setup: typeof setup;
  29. [propertys: string]: any;
  30. }
  31. /**
  32. * JavaScript 函数库、工具类
  33. */
  34. declare let XEUtils: XEUtilsMethods
  35. export default XEUtils