UNPKG

@tiny-css/compiler

Version:

The compiler for compiling & reducing the bundle size of tiny-css

19 lines (18 loc) 690 B
import { SelectorType } from "./groupSelectors"; export interface SelectorObject { type: SelectorType; selector: string[]; } export declare function arrayedSet<T>(arr: T[]): T[]; /** * it's the lighter version of `groupSelector` which doesn't * resolve selector relation resolution. * Also it takes multiple selector string & it can return selector types with unique selectors * @author KR Tirtho * @param {string[]} src array of selector strings * @param {{ unique: boolean }} [opts={ unique: true }] default {unique: true} * @return {*} {SelectorObject[]} */ export declare function resolveSelectorTypes(src: string[], opts?: { unique: boolean; }): SelectorObject[];