feat: type Scope to keep track of info during optimization

This commit is contained in:
karishmas6
2024-06-06 00:25:49 +05:30
parent 710405024b
commit 6d3ba935c1

View File

@@ -425,6 +425,12 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
return Array.from(paths).sort((a, b) => penalty(a) - penalty(b));
}
type Scope = {
counter: number;
visited: Map<string, boolean>;
};
};