@types/react-mathjax
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-mathjax

Weekly Downloads

657

Version

1.0.4

License

MIT

Unpacked Size

3.82 kB

Total Files

5

Last publish

Collaborators

  • types