Skip to content

Commit

Permalink
chore: remove 'any' type from Entity check helper
Browse files Browse the repository at this point in the history
  • Loading branch information
tgallacher committed Jan 20, 2022
1 parent d411dc6 commit 476b64e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/entity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { v4 as uuid } from 'uuid';

// eslint-disable-next-line no-use-before-define
const isEntity = (v: unknown): v is Entity<any> => v instanceof Entity;
const isEntity = <T extends IBaseEntityData = IBaseEntityData>(
v: unknown,
): v is Entity<T> => v instanceof Entity;

export interface IEntity {
readonly id: string;
Expand Down

0 comments on commit 476b64e

Please sign in to comment.