utils.d.ts 603 B

1234567891011
  1. /// <reference types="miniprogram-api-typings" />
  2. export declare function isDef(value: any): boolean;
  3. export declare function isObj(x: any): boolean;
  4. export declare function isNumber(value: any): boolean;
  5. export declare function range(num: number, min: number, max: number): number;
  6. export declare function nextTick(fn: Function): void;
  7. export declare function getSystemInfoSync(): WechatMiniprogram.GetSystemInfoSyncResult;
  8. export declare function addUnit(value?: string | number): string | undefined;
  9. export declare function requestAnimationFrame(
  10. cb: Function
  11. ): void | WechatMiniprogram.NodesRef;