From d1757ecc18a47651298a604ffa5e28bdc793785a Mon Sep 17 00:00:00 2001 From: Manti <67705577+mantikafasi@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:17:00 +0300 Subject: [PATCH] die tsc --- src/plugins/Timezones/Intl.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/plugins/Timezones/Intl.d.ts diff --git a/src/plugins/Timezones/Intl.d.ts b/src/plugins/Timezones/Intl.d.ts new file mode 100644 index 000000000..6abe9c2d4 --- /dev/null +++ b/src/plugins/Timezones/Intl.d.ts @@ -0,0 +1,14 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +// As vencord uses 3 decade old typescript I need to have this header file +// see https://stackoverflow.com/questions/76400750/intl-supportedvaluesof-property-supportedvaluesof-does-not-exist-on-type-type +// https://github.com/microsoft/TypeScript/issues/49231 +declare namespace Intl { + type Key = "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"; + + function supportedValuesOf(input: Key): string[]; +}