UNPKG

react-shields.io

Version:

Shields.io for react component, Quality metadata badges for open source projects.

18 lines (17 loc) 542 B
import { Component } from 'react'; export interface BaseProps { platform?: 'github' | 'coveralls' | 'npm'; type?: string; user?: string; repo?: string; base?: string; href?: HTMLAnchorElement['href']; } export interface BaseState extends BaseProps { } export default class Base<T> extends Component<BaseProps & T, BaseState & T> { static defaultProps: BaseProps; constructor(props: BaseProps & T, defaultState: BaseProps & T, forceState?: BaseProps & T); getUrl: () => string; render(): JSX.Element; }