Skip to content

Commit 2860e2b

Browse files
fix(commands): type the command callback args without any
1 parent 3eb0556 commit 2860e2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/activate/registerCommands.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const registerCommands = (options: RegisterCommandOptions) => {
117117
// callbacks here are heterogeneous (`importSettings` takes an optional
118118
// `filePath?: string`, others take none) and VS Code dispatches positional
119119
// args dynamically.
120-
type CommandCallback = (...args: any[]) => unknown
120+
type CommandCallback = (...args: never[]) => unknown
121121

122122
// Posts each action in order to the target instance. Failures are logged
123123
// (not thrown) with the handler-specific prefix so a failed post stays

0 commit comments

Comments
 (0)