ReactTestComponent.d.ts 641 B

123456789101112131415161718
  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. import type { NewPlugin } from '../types';
  8. export declare type ReactTestObject = {
  9. $$typeof: symbol;
  10. type: string;
  11. props?: Record<string, unknown>;
  12. children?: null | Array<ReactTestChild>;
  13. };
  14. declare type ReactTestChild = ReactTestObject | string | number;
  15. export declare const serialize: NewPlugin['serialize'];
  16. export declare const test: NewPlugin['test'];
  17. declare const plugin: NewPlugin;
  18. export default plugin;