diff --git a/typings/mysql/index.d.ts b/typings/mysql/index.d.ts index 1b3521308c..3ef9b6b464 100644 --- a/typings/mysql/index.d.ts +++ b/typings/mysql/index.d.ts @@ -56,8 +56,12 @@ export function createPool(config: PoolOptions): BasePool; export function createPoolCluster(config?: PoolClusterOptions): PoolCluster; -type TimeZone = 'local' | 'Z' | string & NonNullable; -export function escape(value: any, stringifyObjects?: boolean, timeZone?: TimeZone): string; +type TimeZone = 'local' | 'Z' | (string & NonNullable); +export function escape( + value: any, + stringifyObjects?: boolean, + timeZone?: TimeZone, +): string; export function escapeId(value: any, forbidQualified?: boolean): string;