a zip code crypto-currency system good for red ONLY

util.d.ts 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /**
  2. * @hidden
  3. * Given a min and max, restrict the given number
  4. * to the range.
  5. * @param min the minimum
  6. * @param n the value
  7. * @param max the maximum
  8. */
  9. export declare function clamp(min: number, n: number, max: number): number;
  10. /** @hidden */
  11. export declare function deepCopy(obj: any): any;
  12. /** @hidden */
  13. export declare function deepEqual(a: any, b: any): boolean;
  14. /** @hidden */
  15. export declare function debounce(fn: Function, wait: number, immediate?: boolean): any;
  16. /**
  17. * @hidden
  18. * Rewrites an absolute URL so it works across file and http based engines
  19. */
  20. export declare function normalizeURL(url: string): string;
  21. /**
  22. * @hidden
  23. * Apply default arguments if they don't exist in
  24. * the first object.
  25. * @param {any} dest the destination to apply defaults to.
  26. */
  27. export declare function defaults(dest: any, ..._args: any[]): any;
  28. /** @hidden */
  29. export declare function isBoolean(val: any): val is boolean;
  30. /** @hidden */
  31. export declare function isString(val: any): val is string;
  32. /** @hidden */
  33. export declare function isNumber(val: any): val is number;
  34. /** @hidden */
  35. export declare function isFunction(val: any): val is Function;
  36. /** @hidden */
  37. export declare function isDefined(val: any): boolean;
  38. /** @hidden */
  39. export declare function isUndefined(val: any): val is undefined;
  40. /** @hidden */
  41. export declare function isPresent(val: any): val is any;
  42. /** @hidden */
  43. export declare function isBlank(val: any): val is null;
  44. /** @hidden */
  45. export declare function isObject(val: any): val is Object;
  46. /** @hidden */
  47. export declare function isArray(val: any): val is any[];
  48. /** @hidden */
  49. export declare function isPrimitive(val: any): boolean;
  50. /** @hidden */
  51. export declare function isTrueProperty(val: any): boolean;
  52. /** @hidden */
  53. export declare function isCheckedProperty(a: any, b: any): boolean;
  54. /** @hidden */
  55. export declare type Side = 'left' | 'right' | 'start' | 'end';
  56. /**
  57. * @hidden
  58. * Given a side, return if it should be on the right
  59. * based on the value of dir
  60. * @param side the side
  61. * @param isRTL whether the application dir is rtl
  62. * @param defaultRight whether the default side is right
  63. */
  64. export declare function isRightSide(side: Side, isRTL: boolean, defaultRight?: boolean): boolean;
  65. /** @hidden */
  66. export declare function reorderArray(array: any[], indexes: {
  67. from: number;
  68. to: number;
  69. }): any[];
  70. /** @hidden */
  71. export declare function removeArrayItem(array: any[], item: any): boolean;
  72. /** @hidden */
  73. export declare function swipeShouldReset(isResetDirection: boolean, isMovingFast: boolean, isOnResetZone: boolean): boolean;
  74. /** @hidden */
  75. declare function _runInDev(fn: Function): any;
  76. /** @hidden */
  77. declare function _assert(actual: any, reason: string): void;
  78. /** @hidden */
  79. export declare function requestIonicCallback(functionToLazy: any): any;
  80. /** @hidden */
  81. export { _assert as assert };
  82. /** @hidden */
  83. export { _runInDev as runInDev };