Replaceable.d.ts 599 B

1234567891011121314151617
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. declare type ReplaceableForEachCallBack = (value: unknown, key: unknown, object: unknown) => void;
  8. export default class Replaceable {
  9. object: any;
  10. type: string;
  11. constructor(object: any);
  12. static isReplaceable(obj1: unknown, obj2: unknown): boolean;
  13. forEach(cb: ReplaceableForEachCallBack): void;
  14. get(key: any): any;
  15. set(key: any, value: any): void;
  16. }
  17. export {};