From bf9cc4c41e72f4a9014659a22b131739524bda1c Mon Sep 17 00:00:00 2001 From: kousei-himeno Date: Wed, 29 Dec 2021 10:09:22 +0900 Subject: [PATCH] fix(typings): Add the infileStreamFactory option to the type definition --- typings/mysql/lib/protocol/sequences/Query.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/typings/mysql/lib/protocol/sequences/Query.d.ts b/typings/mysql/lib/protocol/sequences/Query.d.ts index 77c7595d9b..b634e31451 100644 --- a/typings/mysql/lib/protocol/sequences/Query.d.ts +++ b/typings/mysql/lib/protocol/sequences/Query.d.ts @@ -62,6 +62,11 @@ declare namespace Query { * */ rowsAsArray?: boolean + + /** + * By specifying a function that returns a readable stream, an arbitrary stream can be sent when sending a local fs file. + */ + infileStreamFactory?: (path: string) => Readable; } export interface StreamOptions {