Skip to content

Commit

Permalink
feat: Object.hasOwn의 타입 커스텀
Browse files Browse the repository at this point in the history
  • Loading branch information
NaveOWO committed Aug 13, 2023
1 parent 66751f0 commit 91b6409
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/myTypes/_common/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
declare global {
export interface ObjectConstructor {
hasOwn<T extends object>(o: T, p: PropertyKey): p is keyof typeof o;
}
}

export {};

0 comments on commit 91b6409

Please sign in to comment.