lodash.d.ts 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. declare const _exports: {
  2. /**
  3. * Creates an inheritance relation between the child and the parent, adding a 'super_' attribute to the
  4. * child, and setting up the child prototype.
  5. *
  6. * @param {Function} child - The target object to create parent references for,.
  7. * @param {Function} base - The parent association to assign to the provided child definition.
  8. * @returns {*}
  9. */
  10. inherit: (child: Function, base: Function) => any;
  11. /**
  12. * Creates a hidden property on an object, which can be changed, but is not enumerable.
  13. *
  14. * @param {Object} obj
  15. * @param {String} name
  16. * @param {*} prop
  17. * @returns {*}
  18. */
  19. assignHidden: (obj: any, name: string, prop: any) => any;
  20. /**
  21. * Creates a property on an object, with the given type.
  22. *
  23. * @param {Object} obj
  24. * @param {String} name
  25. * @param {Property} Prop
  26. * @param {*} [fallback]
  27. * @returns {Prop|undefined}
  28. */
  29. createDefined: (obj: any, name: string, Prop: any, fallback?: any) => any | undefined;
  30. /**
  31. * Merges defined keys from the target object onto the source object.
  32. *
  33. * @param {Object} target
  34. * @param {Object} source
  35. * @returns {Object}
  36. */
  37. mergeDefined: (target: any, source: any) => any;
  38. /**
  39. * Returns the value of a property if defined in object, else the default
  40. *
  41. * @param {Object} obj
  42. * @param {String} prop
  43. * @param {*=} def
  44. *
  45. * @returns {*}
  46. */
  47. getOwn: (obj: any, prop: string, def?: any | undefined) => any;
  48. /**
  49. * Creates a clone of an object, but uses the toJSON method if available.
  50. *
  51. * @param {Object} obj
  52. * @returns {*}
  53. */
  54. cloneElement: (obj: any) => any;
  55. isNumeric: (n: any) => boolean;
  56. assign: any;
  57. clone: any;
  58. isArray: any;
  59. isEmpty: any;
  60. isFunction: any;
  61. isNaN: any;
  62. isNil: any;
  63. isNumber: any;
  64. isNull: any;
  65. isObject: any;
  66. isString: any;
  67. isUndefined: any;
  68. capitalize: any;
  69. reduce: any;
  70. filter: any;
  71. reject: any;
  72. has: any;
  73. map: any;
  74. forEach: any;
  75. includes: any;
  76. size: any;
  77. join: any;
  78. trimEnd: any;
  79. findIndex: any;
  80. get: any;
  81. every: any;
  82. keys: any;
  83. mapKeys: any;
  84. pickBy: any;
  85. value: any;
  86. unset: any;
  87. transform: any;
  88. startsWith: any;
  89. endsWith: any;
  90. };
  91. export = _exports;