mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
wip: refresh design
This commit is contained in:
7
packages/lib/types/find-result-set.ts
Normal file
7
packages/lib/types/find-result-set.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export type FindResultSet<T> = {
|
||||
data: T[];
|
||||
count: number;
|
||||
currentPage: number;
|
||||
perPage: number;
|
||||
totalPages: number;
|
||||
};
|
||||
5
packages/lib/types/is-document-status.ts
Normal file
5
packages/lib/types/is-document-status.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { DocumentStatus } from '@documenso/prisma/client';
|
||||
|
||||
export const isDocumentStatus = (value: unknown): value is DocumentStatus => {
|
||||
return Object.values(DocumentStatus).includes(value as DocumentStatus);
|
||||
};
|
||||
Reference in New Issue
Block a user