Skip to content

Commit 009c457

Browse files
authored
fix: make TFunction type augmentable (#2279)
1 parent dd78378 commit 009c457

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

typescript/t.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,12 @@ interface TFunctionNonStrict<Ns extends Namespace = DefaultNamespace, KPrefix =
317317
): TFunctionReturnOptionalDetails<TFunctionProcessReturnValue<$NoInfer<Ret>, DefaultValue>, TOpt>;
318318
}
319319

320-
export type TFunction<
320+
type TFunctionSignature<
321321
Ns extends Namespace = DefaultNamespace,
322322
KPrefix = undefined,
323323
> = _StrictKeyChecks extends true ? TFunctionStrict<Ns, KPrefix> : TFunctionNonStrict<Ns, KPrefix>;
324324

325+
export interface TFunction<Ns extends Namespace = DefaultNamespace, KPrefix = undefined>
326+
extends TFunctionSignature<Ns, KPrefix> {}
327+
325328
export type KeyPrefix<Ns extends Namespace> = ResourceKeys<true>[$FirstNamespace<Ns>] | undefined;

0 commit comments

Comments
 (0)