DefinitelyTyped/types/react-fontawesome/index.d.ts
Ferdy Budhidharma 6d2fc7181a feat(react-dependents): update to TS 2.8 (part 1 of 2) (#27743)
* feat(react-dependents): update to TS 2.8

* exclude react-dom

* fix version mismatches
2018-08-03 21:01:14 +01:00

41 lines
1.3 KiB
TypeScript

// Type definitions for react-fontawesome 1.6
// Project: https://github.com/danawoodman/react-fontawesome
// Definitions by: Timur Rustamov <https://github.com/timurrustamov>
// Anton Kandybo <https://github.com/dublicator>
// Vincas Stonys <https://github.com/vincaslt>
// Gavin Gregory <https://github.com/gavingregory>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
export = FontAwesome;
interface Intermediate extends React.AllHTMLAttributes<HTMLElement> {
size?: any;
}
declare namespace FontAwesome {
type FontAwesomeSize = 'lg' | '2x' | '3x' | '4x' | '5x';
type FontAwesomeStack = '1x' | '2x';
type FontAwesomeFlip = 'horizontal' | 'vertical';
interface FontAwesomeProps extends Intermediate {
ariaLabel?: string;
border?: boolean;
cssModule?: any;
fixedWidth?: boolean;
flip?: FontAwesomeFlip;
inverse?: boolean;
name: string;
pulse?: boolean;
rotate?: number;
size?: FontAwesomeSize;
spin?: boolean;
stack?: FontAwesomeStack;
tag?: string;
}
}
declare class FontAwesome extends React.Component<FontAwesome.FontAwesomeProps> {}