Skip to content

Commit

Permalink
update plain-object
Browse files Browse the repository at this point in the history
  • Loading branch information
Xicheng Guo committed Dec 27, 2023
1 parent 9515429 commit 288729d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/storage-lib/base/plain-object.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { BaseModel } from "./base-model";

export type PlainObject<T extends BaseModel> = Omit<T, keyof BaseModel>;
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;

export type PlainObject<T extends BaseModel> = MakeOptional<T, keyof BaseModel>;

0 comments on commit 288729d

Please sign in to comment.