chore: generate
This commit is contained in:
parent
b1a6c40ad0
commit
89e371c94b
2 changed files with 31 additions and 39 deletions
|
|
@ -133,10 +133,7 @@ function item(hit: Fff.Hit): Item {
|
|||
}
|
||||
}
|
||||
|
||||
function collectPaths<T>(
|
||||
items: T[],
|
||||
toPath: (item: T) => string,
|
||||
): string[] {
|
||||
function collectPaths<T>(items: T[], toPath: (item: T) => string): string[] {
|
||||
return Array.from(
|
||||
new Set(
|
||||
items.flatMap((item): string[] => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue