mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Fix export for react-icon-base
This commit is contained in:
19
types/react-icon-base/index.d.ts
vendored
19
types/react-icon-base/index.d.ts
vendored
@@ -1,15 +1,20 @@
|
||||
// Type definitions for react-icon-base 2.0
|
||||
// Project: https://github.com/gorangajic/react-icon-base#readme
|
||||
// Definitions by: Alexandre Paré <https://github.com/apare>
|
||||
// Definitions by: Alexandre Paré <https://github.com/apare>, Karol Janyst <https://github.com/LKay>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
import * as React from 'react';
|
||||
import * as React from "react";
|
||||
|
||||
export interface IconBaseProps {
|
||||
color?: string;
|
||||
size?: string | number;
|
||||
style?: React.CSSProperties;
|
||||
export = IconBaseClass;
|
||||
|
||||
declare namespace IconBaseClass {
|
||||
export interface IconBaseProps {
|
||||
color?: string;
|
||||
size?: string | number;
|
||||
style?: React.CSSProperties;
|
||||
viewBox?: string;
|
||||
}
|
||||
}
|
||||
|
||||
export default class IconBase extends React.Component<IconBaseProps, any> {}
|
||||
declare class IconBaseClass extends React.Component<IconBaseClass.IconBaseProps, any> {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as React from 'react';
|
||||
import IconBase from 'react-icon-base';
|
||||
import * as React from "react";
|
||||
import * as IconBase from "react-icon-base";
|
||||
|
||||
export default <IconBase size={30} color='aliceblue' style={{ margin: "30px" }} />;
|
||||
export default <IconBase size={ 30 } color="aliceblue" style={ { margin: "30px" } } />;
|
||||
|
||||
Reference in New Issue
Block a user