kjelsrud.dev/node_modules/micromark-extension-mdx-jsx/lib/jsx-text.d.ts

24 lines
840 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
/**
* Parse JSX (text).
*
* @param {Acorn | undefined} acorn
* Acorn parser to use (optional).
* @param {AcornOptions | undefined} acornOptions
* Configuration for acorn.
* @param {boolean | undefined} addResult
* Whether to add `estree` fields to tokens with results from acorn.
* @returns {Construct}
* Construct.
*/
export function jsxText(
acorn: Acorn | undefined,
acornOptions: AcornOptions | undefined,
addResult: boolean | undefined
): Construct
export type Acorn = import('micromark-factory-mdx-expression').Acorn
export type AcornOptions =
import('micromark-factory-mdx-expression').AcornOptions
export type Construct = import('micromark-util-types').Construct
export type TokenizeContext = import('micromark-util-types').TokenizeContext
export type Tokenizer = import('micromark-util-types').Tokenizer