index.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 * as PrettyFormat from './types';
  8. /**
  9. * Returns a presentation string of your `val` object
  10. * @param val any potential JavaScript object
  11. * @param options Custom settings
  12. */
  13. declare function prettyFormat(val: any, options?: PrettyFormat.OptionsReceived): string;
  14. declare namespace prettyFormat {
  15. var plugins: {
  16. AsymmetricMatcher: PrettyFormat.NewPlugin;
  17. ConvertAnsi: PrettyFormat.NewPlugin;
  18. DOMCollection: PrettyFormat.NewPlugin;
  19. DOMElement: PrettyFormat.NewPlugin;
  20. Immutable: PrettyFormat.NewPlugin;
  21. ReactElement: PrettyFormat.NewPlugin;
  22. ReactTestComponent: PrettyFormat.NewPlugin;
  23. };
  24. }
  25. declare namespace prettyFormat {
  26. type Colors = PrettyFormat.Colors;
  27. type Config = PrettyFormat.Config;
  28. type Options = PrettyFormat.Options;
  29. type OptionsReceived = PrettyFormat.OptionsReceived;
  30. type NewPlugin = PrettyFormat.NewPlugin;
  31. type Plugin = PrettyFormat.Plugin;
  32. type Plugins = PrettyFormat.Plugins;
  33. type Refs = PrettyFormat.Refs;
  34. type Theme = PrettyFormat.Theme;
  35. }
  36. export = prettyFormat;
  37. //# sourceMappingURL=index.d.ts.map