Skip to content

Commit

Permalink
feat: SavedId
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Jan 21, 2024
1 parent 08713a7 commit 6e72f95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export type Saved<T> = T & {
updated: UnixTimestampNumber
}

export type SavedId<T> = T & {
id: string
}

export type Unsaved<T> = T extends AnyObject
? Omit<T, 'id' | 'created' | 'updated'> & {
id?: string
Expand Down

0 comments on commit 6e72f95

Please sign in to comment.