@dooboostore/dom-render
Version:
html view template engine
104 lines • 2.1 kB
TypeScript
import { Compiler as BaseCompiler } from './compiler';
interface Node {
type: string;
position?: any;
stylesheet?: {
rules: Node[];
};
import?: string;
media?: string;
vendor?: string;
document?: string;
charset?: string;
namespace?: string;
supports?: string;
name?: string;
keyframes?: Node[];
values?: string[];
declarations?: Node[];
selectors?: string[];
rules?: Node[];
property?: string;
value?: string;
}
interface Declaration extends Node {
type: 'declaration';
property: string;
value: string;
position?: any;
}
/**
* Compressed CSS compiler
*/
export declare class CompressCompiler extends BaseCompiler {
/**
* Override emit to handle position
*/
emit(str: string, pos?: any): string;
/**
* Compile `node`.
*/
compile(node: Node): string;
/**
* Visit comment node.
*/
comment(node: Node): string;
/**
* Visit import node.
*/
import(node: Node): string;
/**
* Visit media node.
*/
media(node: Node): string;
/**
* Visit document node.
*/
document(node: Node): string;
/**
* Visit charset node.
*/
charset(node: Node): string;
/**
* Visit namespace node.
*/
namespace(node: Node): string;
/**
* Visit supports node.
*/
supports(node: Node): string;
/**
* Visit keyframes node.
*/
keyframes(node: Node): string;
/**
* Visit keyframe node.
*/
keyframe(node: Node): string;
/**
* Visit page node.
*/
page(node: Node): string;
/**
* Visit font-face node.
*/
'font-face'(node: Node): string;
/**
* Visit host node.
*/
host(node: Node): string;
/**
* Visit custom-media node.
*/
'custom-media'(node: Node): string;
/**
* Visit rule node.
*/
rule(node: Node): string;
/**
* Visit declaration node.
*/
declaration(node: Declaration): string;
}
export {};
//# sourceMappingURL=compress.d.ts.map