From 4b35108970f561541f8d7bc728edea04fc470fbb Mon Sep 17 00:00:00 2001 From: David Lannoye Date: Thu, 5 Oct 2023 15:23:39 -0700 Subject: [PATCH] Export FluentIcon type --- packages/react-icons/convert-font.js | 1 + packages/react-icons/convert.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/react-icons/convert-font.js b/packages/react-icons/convert-font.js index 2ffa04df1f..3e1c496cc7 100644 --- a/packages/react-icons/convert-font.js +++ b/packages/react-icons/convert-font.js @@ -73,6 +73,7 @@ async function processFiles(src, dest) { indexContents.push('export { default as wrapIcon } from \'../utils/wrapIcon\''); indexContents.push('export { default as bundleIcon } from \'../utils/bundleIcon\''); indexContents.push('export { createFluentFontIcon } from \'../utils/fonts/createFluentFontIcon\''); + indexContents.push('export type { FluentIcon } from \'../utils/createFluentIcon\''); indexContents.push('export * from \'../utils/useIconState\''); indexContents.push('export * from \'../utils/constants\''); indexContents.push('export { IconDirectionContextProvider, useIconContext } from \'../contexts/index\''); diff --git a/packages/react-icons/convert.js b/packages/react-icons/convert.js index b65d626ed7..20c7852510 100644 --- a/packages/react-icons/convert.js +++ b/packages/react-icons/convert.js @@ -72,6 +72,7 @@ function processFiles(src, dest) { indexContents.push('export { default as wrapIcon } from \'./utils/wrapIcon\''); indexContents.push('export { default as bundleIcon } from \'./utils/bundleIcon\''); indexContents.push('export { createFluentIcon } from \'./utils/createFluentIcon\''); + indexContents.push('export type { FluentIcon } from \'./utils/createFluentIcon\''); indexContents.push('export * from \'./utils/useIconState\''); indexContents.push('export * from \'./utils/constants\''); indexContents.push('export { IconDirectionContextProvider, useIconContext } from \'./contexts/index\'');