From 0c6dd4a254c6d74e18b5ccc32d181947c7009d6a Mon Sep 17 00:00:00 2001 From: Jack OConnor Date: Sat, 17 Aug 2024 11:52:47 +0100 Subject: [PATCH] Add types to i18n section of package.json --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aeae51955..1243846f9 100644 --- a/package.json +++ b/package.json @@ -123,8 +123,14 @@ "require": "./react/build/IntlTelInputWithUtils.cjs", "default": "./react/build/IntlTelInputWithUtils.js" }, - "./i18n": "./build/js/i18n/index.js", - "./i18n/*": "./build/js/i18n/*/index.js", + "./i18n": { + "types": "./build/js/intlTelInput.d.ts", + "default": "./build/js/i18n/index.js" + }, + "./i18n/*": { + "types": "./build/js/intlTelInput.d.ts", + "default": "./build/js/i18n/*/index.js" + }, "./styles": "./build/css/intlTelInput.css", "./*": "./*" },