mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
This silences a warning because our Node engine is newer then the package expects. There are newer versions of the plugin by now, but the transitive dependencies are younger than 1 week so the audit mirror blocks them. 46.10.1 seems like it was stable for a couple months so we use that. R=alexrudenko@chromium.org Bug: None Change-Id: Icf1c1276852e55dcad97d2ea2eeb6a8d7a9d82ae Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5660063 Commit-Queue: Simon Zünd <szuend@chromium.org> Auto-Submit: Simon Zünd <szuend@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
25 lines
813 B
TypeScript
25 lines
813 B
TypeScript
import { Line } from '../primitives.js';
|
|
/**
|
|
* Groups source lines in sections representing tags.
|
|
* First section is a block description if present. Last section captures lines starting with
|
|
* the last tag to the end of the block, including dangling closing marker.
|
|
* @param {Line[]} block souce lines making a single comment block
|
|
*/
|
|
export type Parser = (block: Line[]) => Line[][];
|
|
/**
|
|
* Predicate telling if string contains opening/closing escaping sequence
|
|
* @param {string} source raw source line
|
|
*/
|
|
export type Fencer = (source: string) => boolean;
|
|
/**
|
|
* `Parser` configuration options
|
|
*/
|
|
export interface Options {
|
|
fence: string | Fencer;
|
|
}
|
|
/**
|
|
* Creates configured `Parser`
|
|
* @param {Partial<Options>} options
|
|
*/
|
|
export default function getParser({ fence, }?: Partial<Options>): Parser;
|