We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b437552 commit 836202bCopy full SHA for 836202b
1 file changed
typeTemplates/index.d.ts
@@ -1,3 +1,5 @@
1
+import { Draft } from "immer";
2
+
3
export type Primitives = symbol | string | number | boolean | null | undefined;
4
export type ObjectAndPrimitives = Primitives | object;
5
type KeyType = string | number | symbol;
@@ -338,9 +340,9 @@ export function transformObjectDeep(
338
340
export function truncate(string: string, length: number): string;
339
341
export function _truncate(string: NilOr<string>, length: number): NilOr<string>;
342
-export function nullSafe<T extends Function>(
343
+export function nullSafe<T extends (...args: any) => any>(
344
func: T
-): (...args: any) => ReturnType<T>;
345
+): (...args: Parameters<T>) => ReturnType<T>;
346
347
export function isNotPresent(object: any): boolean;
348
export function isPresent(object: any): boolean;
0 commit comments