Skip to content

Commit 003418f

Browse files
committed
Fixed Container.walk() callback type
1 parent 2bf2125 commit 003418f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ast/style.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Container, Node, Root } from "postcss";
1+
import type { ChildNode, Container, Node, Root } from "postcss";
22
import type { Locations } from "./common";
33
import type { SvelteStyleElement } from "./html";
44

@@ -8,7 +8,7 @@ type ESLintCompatiblePostCSSContainer<Child extends Node> = Omit<
88
> & {
99
walk(
1010
callback: (
11-
node: ESLintCompatiblePostCSSNode<Child>,
11+
node: ESLintCompatiblePostCSSNode<ChildNode>,
1212
index: number
1313
) => false | void
1414
): false | undefined;

0 commit comments

Comments
 (0)