Renamed to FunctionLike; allowed Function

This commit is contained in:
Josh Goldberg
2018-02-07 16:36:08 -08:00
parent 4b3b60fd82
commit b47fc25da9
+3 -2
View File
@@ -199,7 +199,7 @@ declare namespace jest {
type Lifecycle = (fn: ProvidesCallback, timeout?: number) => any;
interface IClassLike {
interface FunctionLike {
readonly name: string;
}
@@ -224,7 +224,8 @@ declare namespace jest {
}
interface Describe {
(name: number | string | IClassLike, fn: EmptyFunction): void;
// tslint:disable-next-line ban-types
(name: number | string | Function | FunctionLike, fn: EmptyFunction): void;
only: Describe;
skip: Describe;
}