Skip to content

Commit

Permalink
Merge pull request #54 from GuoXiCheng/dev-c
Browse files Browse the repository at this point in the history
update plain-object
  • Loading branch information
GuoXiCheng authored Dec 27, 2023
2 parents d707b58 + 288729d commit 715e81f
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 715e81f

Please sign in to comment.