UNPKG

string-extract-class-names

Version:

Extracts CSS class/id names from a string

17 lines (14 loc) 378 B
type Range = | [from: number, to: number] | [from: number, to: number, whatToInsert: string | null | undefined]; type Ranges = Range[] | null; declare const version: string; interface Result { res: string[]; ranges: Ranges; } /** * Extracts CSS class/id names from a string */ declare function extract(str: string): Result; export { type Result, extract, version };