mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
576 B
TypeScript
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;
|