composer and npm

This commit is contained in:
Henry Whitaker
2020-08-25 00:59:44 +01:00
parent 6726d93cc6
commit c8f853dc84
2504 changed files with 88530 additions and 41367 deletions

View File

@@ -25,8 +25,8 @@ declare namespace postcssValueParser {
before: string;
/**
* The token at the end of the node
*/
* The token at the end of the node
*/
after: string;
}
@@ -85,7 +85,7 @@ declare namespace postcssValueParser {
* @param node The node to stringify
* @returns The serialized CSS representation of the node
*/
(nodes: Node): string;
(nodes: Node): string | undefined;
}
interface WalkCallback {
@@ -95,7 +95,7 @@ declare namespace postcssValueParser {
* @param nodes The series of parsed nodes
* @returns Returning `false` will prevent traversal of descendant nodes (only applies if `bubble` was set to `true` in the `walk()` call)
*/
(node: Node, index: number, nodes: Node[]): void | false;
(node: Node, index: number, nodes: Node[]): void | boolean;
}
/**

View File

@@ -16,7 +16,7 @@ function stringifyNode(node, custom) {
} else if (type === "div") {
return (node.before || "") + value + (node.after || "");
} else if (Array.isArray(node.nodes)) {
buf = stringify(node.nodes);
buf = stringify(node.nodes, custom);
if (type !== "function") {
return buf;
}