ReactTestComponent.d.ts 797 B

12345678910111213141516171819
  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 { Config, Printer, NewPlugin } from '../types';
  8. export declare type ReactTestObject = {
  9. $$typeof: symbol;
  10. type: string;
  11. props?: Record<string, any>;
  12. children?: null | Array<ReactTestChild>;
  13. };
  14. declare type ReactTestChild = ReactTestObject | string | number;
  15. export declare const serialize: (object: ReactTestObject, config: Config, indentation: string, depth: number, refs: any[], printer: Printer) => string;
  16. export declare const test: (val: any) => boolean;
  17. declare const plugin: NewPlugin;
  18. export default plugin;
  19. //# sourceMappingURL=ReactTestComponent.d.ts.map