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

View File

@@ -59,9 +59,9 @@ export type WorkspaceBrowserProps =
*/
export type WorkspacePickerInjected = {
/** Explicitly create or adopt a real Workspace before targeting a Session. */
createWorkspace(input: { name: string } | { path: string }): Promise<WorkspaceView>
createWorkspace: (input: { name: string } | { path: string }) => Promise<WorkspaceView>
/** Ask the local Host to open its native single-directory picker. */
pickDirectory(): Promise<string | null>
pickDirectory: () => Promise<string | null>
}
/**