From 609229a973031615cb93b5678b5932cf3714480f Mon Sep 17 00:00:00 2001 From: wellwelwel <46850407+wellwelwel@users.noreply.github.com> Date: Sat, 24 Jun 2023 03:43:29 -0300 Subject: [PATCH] fix: missing typings for `CharsetToEncoding` constants --- typings/mysql/lib/constants/CharsetToEncoding.d.ts | 8 ++++++++ typings/mysql/lib/constants/index.d.ts | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 typings/mysql/lib/constants/CharsetToEncoding.d.ts diff --git a/typings/mysql/lib/constants/CharsetToEncoding.d.ts b/typings/mysql/lib/constants/CharsetToEncoding.d.ts new file mode 100644 index 0000000000..aa28389cb9 --- /dev/null +++ b/typings/mysql/lib/constants/CharsetToEncoding.d.ts @@ -0,0 +1,8 @@ +/** + * Constant `CharsetToEncoding`. + * + * Please note that `CharsetToEncoding` can only be accessed from the `mysql` object and not imported directly. + */ +declare const CharsetToEncoding: string[]; + +export { CharsetToEncoding }; diff --git a/typings/mysql/lib/constants/index.d.ts b/typings/mysql/lib/constants/index.d.ts index a7b69a73df..d08ba2cb89 100644 --- a/typings/mysql/lib/constants/index.d.ts +++ b/typings/mysql/lib/constants/index.d.ts @@ -1,4 +1,5 @@ import { Types } from './Types.js'; import { Charsets } from './Charsets.js'; +import { CharsetToEncoding } from './CharsetToEncoding.js'; -export { Types, Charsets }; +export { Types, Charsets, CharsetToEncoding };