Skip to content

Commit

Permalink
fix: ts 2.x unknown type error
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Jul 4, 2020
1 parent 3954064 commit 0220e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uploadx/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export const pick = <T, K extends keyof T>(obj: T, whitelist: K[]): Pick<T, K> =
return result;
};

export function isNumber(x: unknown): x is number {
export function isNumber(x: any): x is number {
return x === Number(x);
}

export function isString(x: unknown): x is string {
export function isString(x: any): x is string {
return typeof x === 'string';
}

Expand Down

0 comments on commit 0220e94

Please sign in to comment.