From 8831e092024f8d26fe9272adec8e1a5f115735aa Mon Sep 17 00:00:00 2001 From: yutak23 <79501292+yutak23@users.noreply.github.com> Date: Tue, 21 Nov 2023 11:28:11 +0900 Subject: [PATCH] fix: malformed FieldPacket (#2280) * fix: Malformed FieldPacket * fix: change to optional typeo * fix: add columnType * fix: type props to optional --- .../lib/protocol/packets/FieldPacket.d.ts | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/typings/mysql/lib/protocol/packets/FieldPacket.d.ts b/typings/mysql/lib/protocol/packets/FieldPacket.d.ts index 29d91e21ae..316c44ed77 100644 --- a/typings/mysql/lib/protocol/packets/FieldPacket.d.ts +++ b/typings/mysql/lib/protocol/packets/FieldPacket.d.ts @@ -3,19 +3,25 @@ declare interface FieldPacket { name: 'FieldPacket'; }; catalog: string; - charsetNr: number; - db: string; + charsetNr?: number; + db?: string; + schema?: string; + characterSet?: number; decimals: number; - default: any; - flags: number; - length: number; + default?: any; + flags: number | string[]; + length?: number; name: string; orgName: string; orgTable: string; - protocol41: boolean; + protocol41?: boolean; table: string; - type: number; - zerofill: boolean; + type?: number; + columnType?: number + zerofill?: boolean; + typeName?: string; + encoding?: string; + columnLength?: number; } export { FieldPacket };