@tiny-css/compiler
Version:
The compiler for compiling & reducing the bundle size of tiny-css
13 lines (12 loc) • 634 B
TypeScript
import { StyleRules, Stylesheet } from "css";
/**
* returns `cssObject`. Doesn't check for availability in output css file.
* `writeCssFile` function finishes the final check. This function only
* returns
* objects that lazily includes the css .{class} for that.
* @author KR Tirtho
* @param {string} stylesheetObj the file that includes all the css style declarations as string.
* @param {string[]} classes all the classes that needs to be matched with css selectors
* @returns {css.Rule} Rule
*/
export declare function getCssObjects(stylesheetObj: Stylesheet, classes: string[]): StyleRules["rules"] | false;