This commit is contained in:
11
node_modules/@emmetio/html-matcher/dist/scan.d.ts
generated
vendored
Normal file
11
node_modules/@emmetio/html-matcher/dist/scan.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
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 doesn’t 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
|
||||
* it’s a "script" and "style" tags.
|
||||
*/
|
||||
export default function scan(source: string, callback: FastScanCallback, options?: ScannerOptions): void;
|
||||
Reference in New Issue
Block a user