Skip to content

Commit e4b652d

Browse files
committed
Add EmptyObject helper type
1 parent ef386fb commit e4b652d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/toolkit/src/tsHelpers.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,10 @@ export type AnyNonNullishValue = NonNullable<unknown>
238238
* @internal
239239
*/
240240
export type AnyFunction = (...args: any[]) => any
241+
242+
/**
243+
* Represents a strictly empty plain object, the `{}` value.
244+
*
245+
* @internal
246+
*/
247+
export type EmptyObject = Record<string, never>

0 commit comments

Comments
 (0)