chore(lint): declare contract callbacks property-style

unbound-method flags destructuring a method-style member (method
signatures are bivariant and exempt from the this-context check).
These contract members are all plain callbacks — declare them as
property-style function types so consumers can destructure them
without a false this-binding hazard. Type-level only.
This commit is contained in:
imccyu
2026-07-27 22:23:10 +08:00
parent 49c2e85ac7
commit 2adf44fb80
4 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -34,5 +34,5 @@ export interface MenuViewInjected {
* @param source - source (group) name.
* @param index - candidate index within the group.
*/
onPick(source: string, index: number): void
onPick: (source: string, index: number) => void
}