1.0.4 • Published 6 months ago

@types/react-mathjax v1.0.4

Weekly downloads
640
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for react-mathjax 1.0
// Project: https://github.com/SamyPesse/react-mathjax#readme
// Definitions by: ArtoLord <https://github.com/ArtoLord>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 20:20:55 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by ArtoLord.

1.0.2

8 months ago

1.0.4

6 months ago

1.0.3

7 months ago

1.0.1

3 years ago

1.0.0

4 years ago