mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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>
22 lines
688 B
TypeScript
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;
|