lib.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930
  1. import { FunctionRegiste, LibParamType } from "../types";
  2. import { Scope } from "../Scope";
  3. export declare function getRegList(): FunctionRegiste[];
  4. export declare function getRegParamList(methodName: string): any;
  5. /**
  6. * 模拟点击按钮
  7. */
  8. export declare function raiseClick(buttonHandle: any): boolean;
  9. /**
  10. * 标注系统全局函数的参数
  11. * @param title 函数名称
  12. * @param type 函数类型
  13. * @param allowEmpty 可否为空
  14. */
  15. export declare function LibParam(title: string, type: LibParamType, allowEmpty?: boolean): (target: any, methodName: any, paramsIndex: any) => void;
  16. /**
  17. * 标注函数变成"系统全局函数"
  18. */
  19. export declare function Lib(registe: FunctionRegiste): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
  20. /**
  21. * 解析事件
  22. * 'scope.私有方法名'
  23. * 'system.系统函数名'
  24. * 'format.格式化名'
  25. */
  26. export declare function lookupFn(scope: Scope, event: string, errorWho?: any): Function;
  27. /**
  28. * 从 ext.element 获取 scope 对象
  29. */
  30. export declare function lookupScope(extHandle: any): Scope;