DefinitelyTyped/types/rehype-react/index.d.ts
2019-04-10 17:40:38 +02:00

23 lines
576 B
TypeScript

// Type definitions for rehype-react 3.1
// Project: https://github.com/rhysd/rehype-react
// Definitions by: Adrian Kremer <https://github.com/adriankremer>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
interface Options {
createElement: typeof React.createElement;
components: {
[tagName: string]: React.ComponentType<any>;
};
prefix?: string;
}
declare class RehypeReact {
constructor(options: Options)
Compiler: (node: any) => any;
}
export = RehypeReact;