市场夺宝奇兵
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
516 B

  1. type Options = {
  2. props?: (string | symbol)[];
  3. nonenumerable?: boolean;
  4. };
  5. /**
  6. * Copy (clone) an object and all its props recursively to get rid of any prop referenced of the original object. Arrays are also cloned, however objects inside arrays are still linked.
  7. *
  8. * @param target Target can be anything
  9. * @param [options = {}] Options can be `props` or `nonenumerable`
  10. * @returns the target with replaced values
  11. */
  12. declare function copy<T>(target: T, options?: Options): T;
  13. export { Options, copy };