Skip to content

Commit 3526352

Browse files
committed
add possible type for other authPlugins
1 parent cf88141 commit 3526352

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ export interface Pool extends mysql.Connection {
154154
type authPlugins = (pluginMetadata: {
155155
connection: Connection;
156156
command: string;
157-
}) => (pluginData: Buffer) => Promise<string> | string;
157+
}) => (
158+
pluginData: Buffer
159+
) => Promise<string> | string | Buffer | Promise<Buffer> | null;
158160

159161
export interface ConnectionOptions extends mysql.ConnectionOptions {
160162
charsetNumber?: number;

0 commit comments

Comments
 (0)