index.d.ts 745 B

1234567891011121314151617181920212223
  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 { DiffOptions as JestDiffOptions } from './types';
  8. declare function diff(a: any, b: any, options?: JestDiffOptions): string | null;
  9. declare namespace diff {
  10. var getStringDiff: (expected: string, received: string, options?: JestDiffOptions | undefined) => {
  11. isMultiline: true;
  12. annotatedDiff: string;
  13. } | {
  14. isMultiline: false;
  15. a: string;
  16. b: string;
  17. } | null;
  18. }
  19. declare namespace diff {
  20. type DiffOptions = JestDiffOptions;
  21. }
  22. export = diff;
  23. //# sourceMappingURL=index.d.ts.map