mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add typings for jest-diff * Add typings for jest-get-type * Add typings for jest-matcher-utils * Enable noImplicitThis option for jest-diff * Enable noImplicitThis option for jest-get-type * Enable noImplicitThis option for jest-matcher-utils * Point jest-diff project URL to GitHub * Point jest-get=type project URL to GitHub * Point jest-matcher-utils project URL to GitHub * Uncomment EXPECTED_BG, RECEIVED_BG variables Although these variables have been removed on master of the jest-matcher-utils repo, there has yet to be a release. Add a TODO to indicate that a future update to these definitions will be necessary.
19 lines
537 B
TypeScript
19 lines
537 B
TypeScript
// Type definitions for jest-diff 20.0
|
|
// Project: https://github.com/facebook/jest/tree/master/packages/jest-diff
|
|
// Definitions by: Alex Coles <https://github.com/myabc>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
declare namespace diff {
|
|
interface DiffOptions {
|
|
aAnnotation?: string;
|
|
bAnnotation?: string;
|
|
expand?: boolean;
|
|
contextLines?: number;
|
|
}
|
|
}
|
|
|
|
declare function diff(a: any, b: any, options?: diff.DiffOptions): string;
|
|
|
|
export = diff;
|