25 lines
897 B
TypeScript
25 lines
897 B
TypeScript
![]() |
/**
|
||
|
* Parse JSX (flow).
|
||
|
*
|
||
|
* @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 jsxFlow(
|
||
|
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 State = import('micromark-util-types').State
|
||
|
export type TokenizeContext = import('micromark-util-types').TokenizeContext
|
||
|
export type Tokenizer = import('micromark-util-types').Tokenizer
|