Skip to content

Commit

Permalink
Optional type
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Oct 18, 2024
1 parent 1efa095 commit 8afaca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/object/src/Optional.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type Optional<T extends object, F extends keyof T> = Omit<T, F> & Partial<Pick<T, F>>
1 change: 1 addition & 0 deletions packages/object/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export * from './isType.ts'
export * from './JsonObject.ts'
export * from './ObjectWrapper.ts'
export * from './omitBy.ts'
export * from './Optional.ts'
export * from './Override.ts'
export * from './PartialRecord.ts'
export * from './pickBy.ts'
Expand Down

0 comments on commit 8afaca4

Please sign in to comment.