Skip to content

Commit

Permalink
[types] improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 14, 2025
1 parent c012309 commit 7d1beb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions RequireObjectCoercible.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare function RequireObjectCoercible<T extends {} = {}>(value: T, optMessage?: string): T;
declare function RequireObjectCoercible<T extends {}>(value: T, optMessage?: string): T;

export = RequireObjectCoercible;
export = RequireObjectCoercible;
4 changes: 2 additions & 2 deletions ToObject.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare function ToObject<T = {}>(value: T extends object ? T : {}): T extends object ? T : object;
declare function ToObject<T extends {}>(value: T): T & object;

export = ToObject;
export = ToObject;

0 comments on commit 7d1beb8

Please sign in to comment.