mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Used a ClassLike interface because of ban-types
This commit is contained in:
Vendored
+5
-1
@@ -199,6 +199,10 @@ declare namespace jest {
|
||||
|
||||
type Lifecycle = (fn: ProvidesCallback, timeout?: number) => any;
|
||||
|
||||
interface IClassLike {
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a test closure
|
||||
*/
|
||||
@@ -220,7 +224,7 @@ declare namespace jest {
|
||||
}
|
||||
|
||||
interface Describe {
|
||||
(name: string | Function, fn: EmptyFunction): void;
|
||||
(name: number | string | IClassLike, fn: EmptyFunction): void;
|
||||
only: Describe;
|
||||
skip: Describe;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user