Skip to content

Commit

Permalink
fix: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Sep 18, 2019
1 parent 709f0ac commit 99154fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export declare interface Callback {
[propName: string]: any;
}

export declare interface CallbackCache<C extends () => any = Callback, P = any> {
export declare interface CallbackCache<C extends Function = Callback, P = any> {
callback: C;
parameters?: P | P[];
scope?: object;
Expand Down Expand Up @@ -97,7 +97,7 @@ export const isArray = <T>(arg: T | T[]): arg is T[] => {
/**
* test if argument is a function
*/
export const isCallable = (arg: any): arg is () => any => {
export const isCallable = (arg: any): arg is Function => {
return (toString.call(arg) === '[object Function]' || arg instanceof Function) && !(arg instanceof RegExp);
};

Expand Down

0 comments on commit 99154fd

Please sign in to comment.