mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
* Use index.d.ts only (not foo/foo.d.ts) * Convert more packages * Remove unnecessary references
33 lines
806 B
TypeScript
33 lines
806 B
TypeScript
// Type definitions for react-fontawesome v.1.1.0
|
|
// Project: https://github.com/danawoodman/react-fontawesome
|
|
// Definitions by: Timur Rustamov <https://github.com/timurrustamov>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module "react-fontawesome" {
|
|
|
|
//Import react
|
|
import React = require('react');
|
|
|
|
type FontAwesomeSize = 'lg' | '2x' | '3x' | '4x' | '5x';
|
|
|
|
interface FontAwesomeProps {
|
|
|
|
border?: boolean,
|
|
className?: string,
|
|
fixedWidth?: boolean,
|
|
flip?: boolean,
|
|
inverse?: boolean
|
|
name: string,
|
|
pulse?: boolean,
|
|
rotate?: number,
|
|
size?: FontAwesomeSize,
|
|
spin?: boolean,
|
|
stack?: string,
|
|
style?: React.CSSProperties
|
|
}
|
|
|
|
class FontAwesome extends React.Component<FontAwesomeProps, {}> {}
|
|
|
|
export = FontAwesome;
|
|
}
|