mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
* Added react-highlight types * React TS version 2.6 * No "I" interface prefix * Whoops, P template also
25 lines
639 B
TypeScript
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.6
|
|
|
|
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;
|