Skip to content

Improve type declarations #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
}

/**
Expand Down