Skip to content

Commit

Permalink
feat: add createdAt and updatedAt to PageModel
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelfullerthomas committed Mar 28, 2024
1 parent 632b940 commit 8e74449
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resources/BaseInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export type PageModel<T = any, TItemsKey extends string = 'items'> = {
} & {
totalEntries: number;
totalPages: number;
createdAt?: number;
updatedAt?: number;
};

export type New<T, K extends keyof T | null = null> = Omit<T, 'id' | NonNullable<K>>;
Expand Down

0 comments on commit 8e74449

Please sign in to comment.