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

3.0.4 • Public • Published

Installation

npm install --save @types/react-katex

Summary

This package contains type definitions for react-katex (https://github.com/talyssonoc/react-katex).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-katex.

index.d.ts

import * as React from "react";

export type ErrorRenderer = (error: Error) => React.ReactNode;

export interface MathComponentPropsWithMath {
    math: string;
    errorColor?: string;
    renderError?: ErrorRenderer;
}

export interface MathComponentPropsWithChildren {
    children: React.ReactNode;
    errorColor?: string;
    renderError?: ErrorRenderer;
}

export type MathComponentProps = MathComponentPropsWithMath | MathComponentPropsWithChildren;

export function BlockMath(props: MathComponentProps): React.JSX.Element;

export function InlineMath(props: MathComponentProps): React.JSX.Element;

Additional Details

  • Last updated: Mon, 04 Dec 2023 20:35:43 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Geoffrey Tang.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-katex

Weekly Downloads

50,395

Version

3.0.4

License

MIT

Unpacked Size

3.85 kB

Total Files

5

Last publish

Collaborators

  • types