DefinitelyTyped/types/react-mathquill/index.d.ts
magonzalez9 0f375a72b5 Add types for react-mathquill (#40861)
* Add types for react-mathquill

* Fix formatting issues

* Fix typescript header version

* Remove single quote character from typescript version header

* Fix typing for function

* Add type definitions for @edtr-io/mathquill and update react-mathquill to reflect that.

* Add paths property to @edtr-io/mathquill tsconfig

* Fix dt-header package version

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/edtr-io__mathquill/edtr-io__mathquill-tests.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/tsconfig.json

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/react-mathquill-tests.tsx

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

Co-authored-by: Dmitry Demensky <10235949+demensky@users.noreply.github.com>
2020-01-02 15:18:03 -08:00

22 lines
688 B
TypeScript

// Type definitions for react-mathquill 0.1
// Project: https://github.com/viktorstrate/react-mathquill#readme
// Definitions by: Marco Gonzalez <https://github.com/magonzalez9>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
import { ComponentProps, Component } from 'react';
import { MQ, Config } from '@edtr-io/mathquill';
export interface Props extends Omit<ComponentProps<'span'>, 'onChange'> {
latex?: string;
config?: Config;
onChange?(mathField: MQ): void;
mathquillDidMount?(mathField: MQ): void;
}
export function addStyles(): void;
declare class MathQuill extends Component<Props> {}
export default MathQuill;