mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* react-breadcrumbs: update to version 2.1 * react-breadcrumbs: remove previous author Previous author asked to remove his name because he doesn't use the type and cannot review future changes
29 lines
883 B
TypeScript
29 lines
883 B
TypeScript
// Type definitions for react-breadcrumbs 2.1
|
|
// Project: https://github.com/svenanders/react-breadcrumbs
|
|
// Definitions by: Guo Yunhe <https://github.com/guoyunhe>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from "react";
|
|
import { LocationDescriptor } from "history";
|
|
|
|
declare module "react-breadcrumbs" {
|
|
interface Crumbs {}
|
|
|
|
interface BreadcrumbsProps {
|
|
className?: string;
|
|
hidden?: boolean;
|
|
setCrumbs?: (crumbs: Crumbs) => React.ReactNode;
|
|
wrapper?: React.StatelessComponent | React.ComponentClass;
|
|
}
|
|
|
|
class Breadcrumbs extends React.Component<BreadcrumbsProps> {}
|
|
|
|
interface BreadcrumbProps {
|
|
data: LocationDescriptor & { title?: React.ReactNode };
|
|
hidden?: boolean;
|
|
}
|
|
|
|
class Breadcrumb extends React.Component<BreadcrumbProps> {}
|
|
}
|