mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [ascii2mathml] Export Options type Types should be exported. * oops, forgot this * one more try
38 lines
1006 B
TypeScript
38 lines
1006 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 ascii2mathml {
|
|
/**
|
|
* Generates a function with default options set to convert
|
|
* ASCIIMath expression to MathML markup.
|
|
* @param options Options
|
|
*/
|
|
(options: A2MML.Options): ascii2mathml;
|
|
|
|
/**
|
|
* Converts ASCIIMath expression to MathML markup.
|
|
* @param asciimath ASCIIMath expression
|
|
* @param options Options
|
|
*/
|
|
(asciimath: string, options?: A2MML.Options): string;
|
|
}
|
|
|
|
declare namespace A2MML {
|
|
interface Options {
|
|
decimalMark?: string;
|
|
colSep?: string;
|
|
rowSep?: string;
|
|
display?: 'inline' | 'block';
|
|
dir?: 'ltr' | 'rtl';
|
|
bare?: boolean;
|
|
standalone?: boolean;
|
|
annotate?: boolean;
|
|
}
|
|
}
|