feat: type Scope to keep track of info during optimization
This commit is contained in:
@@ -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>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user