We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AnyNonNullishValue
1 parent 73d88f8 commit 889adceCopy full SHA for 889adce
packages/toolkit/src/tsHelpers.ts
@@ -221,3 +221,13 @@ export function asSafePromise<Resolved, Rejected>(
221
) {
222
return promise.catch(fallback) as SafePromise<Resolved | Rejected>
223
}
224
+
225
+/**
226
+ * An alias for type `{}`. Represents any value that is not
227
+ * `null` or `undefined`. It is mostly used for semantic purposes
228
+ * to help distinguish between an empty object type and `{}` as
229
+ * they are not the same.
230
+ *
231
+ * @internal
232
+ */
233
+export type AnyNonNullishValue = NonNullable<unknown>
0 commit comments