Closed BoussonKarel closed 2 weeks ago
fixes #586
We can use Parameters<typeof find>[0] because we are passing the selectors to the find function.
Parameters<typeof find>[0]
itemSelector: Parameters<typeof findAll>[0], ...resultSelectors: Parameters<typeof find>[0][]
or we can just copy their types
itemSelector: keyof (HTMLElementTagNameMap | SVGElementTagNameMap) | string, ...resultSelectors: (keyof (HTMLElementTagNameMap | SVGElementTagNameMap) | string)[]
What's the best / cleanest / preferred method of doing this?
fixes #586
We can use
Parameters<typeof find>[0]
because we are passing the selectors to the find function.or we can just copy their types
What's the best / cleanest / preferred method of doing this?