DefinitelyTyped/types/react-highlight/index.d.ts
Ferdy Budhidharma 1d9679b2dc [react] add library managed attributes and upgrade TS requirement to 2.8 (#27901)
* feat(react): add library managed attributes and upgrade to 2.8

* fix broken tests

* fix lint errors
2018-08-06 18:51:26 +01:00

25 lines
639 B
TypeScript

// Type definitions for react-highlight 0.12
// Project: https://github.com/akiran/react-highlight
// Definitions by: Josh Goldberg <https://github.com/joshuakgoldberg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
/**
* Props for a Highlight component.
*/
export interface HighlightProps {
/**
* Language name to use as a class to signal type to highlight.js.
*/
className: string;
}
/**
* Visually prettifies child code with highlight.js.
*/
declare const Highlight: React.ComponentClass<HighlightProps>;
export default Highlight;