From c2f69f9c13f830bc6e8aba918952cd9df998ad5d Mon Sep 17 00:00:00 2001 From: "Grzegorz02@" Date: Sun, 29 Oct 2023 10:06:38 +0100 Subject: [PATCH] properly infer icons type --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index b2c04a43..6a7effa5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,12 +1,12 @@ -import { IconDefinition } from '@fortawesome/fontawesome-svg-core'; +import { IconDefinition, IconName, IconPrefix } from '@fortawesome/fontawesome-svg-core'; import { DefineComponent } from 'vue' interface FontAwesomeIconProps { border?: boolean fixedWidth?: boolean flip?: 'horizontal' | 'vertical' | 'both' - icon: object | Array | string | IconDefinition - mask?: object | Array | string + icon: [IconPrefix, IconName] | IconName | IconDefinition + mask?: [IconPrefix, IconName] | IconName listItem?: boolean pull?: 'right' | 'left' pulse?: boolean