From 891a523939120666e8d85db634262889657aff45 Mon Sep 17 00:00:00 2001 From: wellwelwel <46850407+wellwelwel@users.noreply.github.com> Date: Sat, 24 Jun 2023 03:57:20 -0300 Subject: [PATCH] fix: missing typings for `parserCache` --- typings/mysql/index.d.ts | 1 + typings/mysql/lib/parsers/ParserCache.d.ts | 4 ++++ typings/mysql/lib/parsers/index.d.ts | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 typings/mysql/lib/parsers/ParserCache.d.ts create mode 100644 typings/mysql/lib/parsers/index.d.ts diff --git a/typings/mysql/index.d.ts b/typings/mysql/index.d.ts index f737d601c1..ee5835036c 100644 --- a/typings/mysql/index.d.ts +++ b/typings/mysql/index.d.ts @@ -33,6 +33,7 @@ export { export * from './lib/protocol/packets/index.js'; export * from './lib/Auth.js'; export * from './lib/constants/index.js'; +export * from './lib/parsers/index.js'; // Expose class interfaces export interface Connection extends BaseConnection {} diff --git a/typings/mysql/lib/parsers/ParserCache.d.ts b/typings/mysql/lib/parsers/ParserCache.d.ts new file mode 100644 index 0000000000..0f1e7fa219 --- /dev/null +++ b/typings/mysql/lib/parsers/ParserCache.d.ts @@ -0,0 +1,4 @@ +declare function setMaxParserCache(max: number): void; +declare function clearParserCache(): void; + +export { setMaxParserCache, clearParserCache }; diff --git a/typings/mysql/lib/parsers/index.d.ts b/typings/mysql/lib/parsers/index.d.ts new file mode 100644 index 0000000000..7f1d48e943 --- /dev/null +++ b/typings/mysql/lib/parsers/index.d.ts @@ -0,0 +1,3 @@ +import { setMaxParserCache, clearParserCache } from './ParserCache.js'; + +export { setMaxParserCache, clearParserCache };