ITADN

Types or test-support/reorder are not correct

#586ClosedBoussonKarel 创建于 2024-09-27
B
BoussonKarelcommented
The current type declaration is ```ts export declare function reorder<T extends keyof HTMLElementTagNameMap>(mode: TMode, itemSelector: string, ...resultSelectors: T[]): Promise<void>; ``` which only allows for HTML Element tag names (such as 'a', 'div', 'li') to be used as resultSelector The example in the source file: ![image](https://github.com/user-attachments/assets/f8ddca19-d945-4b22-939e-036a23852135) also throws a type error ![image](https://github.com/user-attachments/assets/6463bb9c-e132-448c-8fbc-f6f7da454f1d)
关闭于 2024-10-03 0 条评论