diff --git a/index.d.ts b/index.d.ts index 172c4153..b2c04a43 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,8 +1,43 @@ -import { FunctionalComponentOptions, VueConstructor } from 'vue' -import { PropsDefinition } from 'vue/types/options' -interface FontAwesomeIconProps { } -interface FontAwesomeLayersProps { } -interface FontAwesomeLayersTextProps { } -export const FontAwesomeIcon: FunctionalComponentOptions> & VueConstructor -export const FontAwesomeLayers: FunctionalComponentOptions> -export const FontAwesomeLayersText: FunctionalComponentOptions> +import { IconDefinition } 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 + listItem?: boolean + pull?: 'right' | 'left' + pulse?: boolean + rotation?: 90 | 180 | 270 | '90' | '180' | '270' + swapOpacity?: boolean + size?: '2xs' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x' + spin?: boolean + transform?: object | string + symbol?: boolean | string + title?: string + inverse?: boolean + bounce?: boolean + shake?: boolean + beat?: boolean + fade?: boolean + beatFade?: boolean + spinPulse?: boolean + spinReverse?: boolean +} + +interface FontAwesomeLayersProps { + fixedWidth?: boolean +} + +interface FontAwesomeLayersTextProps { + value: string | number + transform?: object | string + counter?: boolean + position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' +} + +declare const FontAwesomeIcon: DefineComponent +declare const FontAwesomeLayers: DefineComponent +declare const FontAwesomeLayersText: DefineComponent