pull/3506/head
Richard Harris 5 years ago
parent ec5eb96a86
commit 7e4dce8759

@ -20,7 +20,7 @@ const at_rule_has_declaration = ({ block }: Node): true =>
function minify_declarations(
code: MagicString,
start: number,
declarations: Array<Declaration>
declarations: Declaration[]
): number {
let c = start;
@ -89,7 +89,7 @@ class Rule {
code.remove(c, this.node.block.start);
c = this.node.block.start + 1;
c = minify_declarations(code, c, this.declarations)
c = minify_declarations(code, c, this.declarations);
code.remove(c, this.node.block.end - 1);
}
@ -157,7 +157,7 @@ class Declaration {
class Atrule {
node: Node;
children: Array<Atrule|Rule>;
declarations: Array<Declaration>;
declarations: Declaration[];
constructor(node: Node) {
this.node = node;

Loading…
Cancel
Save