UNPKG

gettext-extractor

Version:

Gettext extractor for JavaScript, TypeScript, JSX and HTML

7 lines (6 loc) 432 B
import { IHtmlExtractorFunction } from '../../parser'; import { IElementSelector } from '../../selector'; import { Element } from '../../parser'; import { IHtmlExtractorOptions } from '../common'; export type ITextExtractor = (element: Element) => string | null; export declare function elementExtractor(selector: string | IElementSelector[], textExtractor: ITextExtractor, options?: IHtmlExtractorOptions): IHtmlExtractorFunction;