Skip to content

Commit e93ef98

Browse files
Convert debug-protocol and friends to use unknown instead of any
1 parent bd823b5 commit e93ef98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extensions/ql-vscode/src/debugger/debug-configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface QLDebugArgs {
2222
extensionPacks?: string[] | string;
2323
quickEval?: boolean;
2424
noDebug?: boolean;
25-
additionalRunQueryArgs?: Record<string, any>;
25+
additionalRunQueryArgs?: Record<string, unknown>;
2626
}
2727

2828
/**
@@ -39,7 +39,7 @@ export type QLDebugConfiguration = DebugConfiguration & QLDebugArgs;
3939
export type QLResolvedDebugConfiguration = DebugConfiguration & LaunchConfig;
4040

4141
/** If the specified value is a single element, then turn it into an array containing that element. */
42-
function makeArray<T extends Exclude<any, any[]>>(value: T | T[]): T[] {
42+
function makeArray<T extends Exclude<unknown, unknown[]>>(value: T | T[]): T[] {
4343
if (Array.isArray(value)) {
4444
return value;
4545
} else {

extensions/ql-vscode/src/debugger/debug-protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export interface LaunchConfig {
7171
/** Run the query without debugging it. */
7272
noDebug: boolean;
7373
/** Undocumented: Additional arguments to be passed to the `runQuery` API on the query server. */
74-
additionalRunQueryArgs: Record<string, any>;
74+
additionalRunQueryArgs: Record<string, unknown>;
7575
}
7676

7777
export interface LaunchRequest extends Request, DebugProtocol.LaunchRequest {

0 commit comments

Comments
 (0)