Skip to content

Commit

Permalink
fix type guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Denny Bartelt committed Sep 20, 2019
1 parent 35eeccd commit 6999d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const isFunction = (x: any): x is Function => 'function' === typeof x;

export const isBoolean = (x: any): x is Boolean => 'boolean' === typeof x;
export const isBoolean = (x: any): x is boolean => 'boolean' === typeof x;

export const isString = (x: any): x is String => 'string' === typeof x;
export const isString = (x: any): x is string => 'string' === typeof x;

0 comments on commit 6999d31

Please sign in to comment.