Skip to content

Commit

Permalink
unknown is safer alternative of any and it don't throws any warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeManSu committed Mar 12, 2024
1 parent 2a46726 commit 8b9af49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ export const diff = (
return object1;
};

export function isIAllApps(data: any): data is IAllApps {
export function isIAllApps(data: unknown): data is IAllApps {
return typeof data === 'object' && data !== null;
}

0 comments on commit 8b9af49

Please sign in to comment.