mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 14:30:49 +08:00
* [ascii2mathml] add typings (v0.5.4) * [intl] add typings * [remove-markdown] add typings * [ascii2mathml][intl][remove-markdown] fix lint * [intl] fix project link * [ascii2mathml] fix test error
36 lines
935 B
TypeScript
36 lines
935 B
TypeScript
// Type definitions for ascii2mathml 0.5
|
|
// Project: https://github.com/runarberg/ascii2mathml
|
|
// Definitions by: Muhammad Ragib Hasin <https://github.com/RagibHasin>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = A2MML;
|
|
|
|
declare var A2MML: ascii2mathml;
|
|
|
|
interface Options {
|
|
decimalMark?: string;
|
|
colSep?: string;
|
|
rowSep?: string;
|
|
display?: 'inline' | 'block';
|
|
dir?: 'ltr' | 'rtl';
|
|
bare?: boolean;
|
|
standalone?: boolean;
|
|
annotate?: boolean;
|
|
}
|
|
|
|
interface ascii2mathml {
|
|
/**
|
|
* Generates a function with default options set to convert
|
|
* ASCIIMath expression to MathML markup.
|
|
* @param options Options
|
|
*/
|
|
(options: Options): ascii2mathml;
|
|
|
|
/**
|
|
* Converts ASCIIMath expression to MathML markup.
|
|
* @param asciimath {string} ASCIIMath expression
|
|
* @param options Options
|
|
*/
|
|
(asciimath: string, options?: Options): string;
|
|
}
|