Skip to content

Commit

Permalink
chore: consider replacing any usage of any with unknown #59
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr committed Apr 20, 2020
1 parent 24d7de3 commit bf1b2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/types/typeGuards.ts
@@ -1,6 +1,6 @@
import { isNumber, isString } from 'ts-type-guards';
import { StringOrNumber } from './types';

export const isStringOrNumber = (x: any): x is StringOrNumber => {
export const isStringOrNumber = (x: unknown): x is StringOrNumber => {
return isString(x) || isNumber(x);
};

0 comments on commit bf1b2b4

Please sign in to comment.