Installation
npm install --save @types/react-mathjax
Summary
This package contains type definitions for react-mathjax (https://github.com/SamyPesse/react-mathjax#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-mathjax.
index.d.ts
import * as React from "react";
interface MathJaxContextValue {
MathJax?: object | undefined;
registerNode: () => void;
}
declare namespace MathJax {
class Provider extends React.Component<
{
script?: string | boolean | undefined;
options?: object | undefined;
children: React.ReactNode;
},
MathJaxContextValue
> {}
class Node extends React.PureComponent<{
formula: string;
inline?: boolean | undefined;
onRender?: (() => void) | undefined;
}> {}
}
export default MathJax;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by ArtoLord.