From 929cd7188140bdcf764fc53496bdcae3308a873c Mon Sep 17 00:00:00 2001 From: "Jaron (aider)" Date: Sat, 15 Feb 2025 12:07:52 -0600 Subject: [PATCH] refactor: Simplify hydrator type signature in Context --- src/types/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/context.ts b/src/types/context.ts index 1598989..a4c048e 100644 --- a/src/types/context.ts +++ b/src/types/context.ts @@ -94,7 +94,7 @@ export class Context { * * @returns A promise that resolves to a type guard function. The type guard function returns `true` if the data object was successfully hydrated, otherwise `false`. */ - public hydrator = async >, K extends Array>(data: T, expectations: K) => { + public hydrator = async >(data: T, expectations: K) => { return hydrator(data, expectations, this.client, this.api); }