From d5844afa20f46cf71a99daf546f0f5e19c06379b Mon Sep 17 00:00:00 2001 From: Neonit Date: Mon, 23 Oct 2017 21:13:32 +0200 Subject: [PATCH] adjust typeCast type in MySqlConnectionConfig (#20431) The underlying node-mysql package supports a function as typeCast value (alternative to a boolean), thus its type has been set to any in the respective types package (@types/mysql). https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/mysql/index.d.ts#L217 --- types/knex/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/knex/index.d.ts b/types/knex/index.d.ts index 3399c5aa52..71e3e0562a 100644 --- a/types/knex/index.d.ts +++ b/types/knex/index.d.ts @@ -563,7 +563,7 @@ declare namespace Knex { connectTimeout?: number; stringifyObjects?: boolean; insecureAuth?: boolean; - typeCast?: boolean; + typeCast?: any; queryFormat?: (query: string, values: any) => string; supportBigNumbers?: boolean; bigNumberStrings?: boolean;