File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,12 @@ export interface Pool extends mysql.Connection {
151
151
promise ( promiseImpl ?: PromiseConstructor ) : PromisePool ;
152
152
}
153
153
154
- type authPlugins =
155
- ( pluginMetadata : { connection : Connection ; command : string } ) =>
156
- ( pluginData : Buffer ) => Promise < string > ;
154
+ type authPlugins = ( pluginMetadata : {
155
+ connection : Connection ;
156
+ command : string ;
157
+ } ) => (
158
+ pluginData : Buffer
159
+ ) => Promise < string > | string | Buffer | Promise < Buffer > | null ;
157
160
158
161
export interface ConnectionOptions extends mysql . ConnectionOptions {
159
162
charsetNumber ?: number ;
@@ -175,7 +178,7 @@ export interface ConnectionOptions extends mysql.ConnectionOptions {
175
178
queueLimit ?: number ;
176
179
waitForConnections ?: boolean ;
177
180
authPlugins ?: {
178
- [ key : string ] : authPlugins ;
181
+ [ key : string ] : authPlugins ;
179
182
} ;
180
183
}
181
184
You can’t perform that action at this time.
0 commit comments