fix: fix eslint warnings

This commit is contained in:
Mythie
2023-08-31 13:33:13 +10:00
parent 930a80ae18
commit 8a271ff8bc
14 changed files with 31 additions and 25 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
export type FindResultSet<T> = {
data: T extends Array<any> ? T : T[];
data: T extends Array<unknown> ? T : T[];
count: number;
currentPage: number;
perPage: number;
+1
View File
@@ -1,5 +1,6 @@
import { DocumentStatus } from '@documenso/prisma/client';
export const isDocumentStatus = (value: unknown): value is DocumentStatus => {
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
return Object.values(DocumentStatus).includes(value as DocumentStatus);
};