From 697f7999a6c4b252b0a3631dea648a67b5611027 Mon Sep 17 00:00:00 2001 From: Andrew Lloyd Cartwright Date: Fri, 6 Oct 2023 19:28:31 -0500 Subject: [PATCH] chore: fix typo from "paramaters" to "parameters" (#2220) * Correcting typo from "paramaters" to "parameters" * chore: fix typo from "paramaters" to "parameters" --------- Co-authored-by: wellwelwel <46850407+wellwelwel@users.noreply.github.com> --- promise.d.ts | 8 ++++---- typings/mysql/lib/protocol/sequences/Prepare.d.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/promise.d.ts b/promise.d.ts index 09d65eb6ed..e9f3e08a1d 100644 --- a/promise.d.ts +++ b/promise.d.ts @@ -18,13 +18,13 @@ export * from './index.js'; // Expose class interfaces declare class QueryableAndExecutableBase extends QueryableBaseClass( - ExecutableBaseClass(EventEmitter) + ExecutableBaseClass(EventEmitter), ) {} export interface PreparedStatementInfo { close(): Promise; execute( - paramaters: any | any[] | { [param: string]: any } + parameters: any | any[] | { [param: string]: any }, ): Promise< [ ( @@ -34,7 +34,7 @@ export interface PreparedStatementInfo { | OkPacket[] | ResultSetHeader ), - FieldPacket[] + FieldPacket[], ] >; } @@ -122,7 +122,7 @@ export interface PoolCluster extends EventEmitter { export function createConnection(connectionUri: string): Promise; export function createConnection( - config: ConnectionOptions + config: ConnectionOptions, ): Promise; export function createPool(connectionUri: string): Pool; diff --git a/typings/mysql/lib/protocol/sequences/Prepare.d.ts b/typings/mysql/lib/protocol/sequences/Prepare.d.ts index 95a6603c9b..ef13801611 100644 --- a/typings/mysql/lib/protocol/sequences/Prepare.d.ts +++ b/typings/mysql/lib/protocol/sequences/Prepare.d.ts @@ -18,7 +18,7 @@ export class PrepareStatementInfo { | OkPacket[] | ResultSetHeader >( - paramaters: any | any[] | { [param: string]: any }, + parameters: any | any[] | { [param: string]: any }, callback?: (err: QueryError | null, result: T, fields: FieldPacket[]) => any ): Query; }