Files
ry.kazcloud.dev/node_modules/@emmetio/html-matcher/dist/scan.d.ts

12 lines
663 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { FastScanCallback, ScannerOptions } from './utils';
/**
* Performs fast scan of given source code: for each tag found it invokes callback
* with tag name, its type (open, close, self-close) and range in original source.
* Unlike regular scanner, fast scanner doesnt provide info about attributes to
* reduce object allocations hence increase performance.
* If `callback` returns `false`, scanner stops parsing.
* @param special List of “special” HTML tags which should be ignored. Most likely
* its a "script" and "style" tags.
*/
export default function scan(source: string, callback: FastScanCallback, options?: ScannerOptions): void;