Convert debug-protocol and friends to use unknown instead of any

This commit is contained in:
Robert
2024-02-08 11:57:30 +00:00
parent bd823b5745
commit e93ef98a67
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ export interface QLDebugArgs {
extensionPacks?: string[] | string;
quickEval?: boolean;
noDebug?: boolean;
additionalRunQueryArgs?: Record<string, any>;
additionalRunQueryArgs?: Record<string, unknown>;
}
/**
@@ -39,7 +39,7 @@ export type QLDebugConfiguration = DebugConfiguration & QLDebugArgs;
export type QLResolvedDebugConfiguration = DebugConfiguration & LaunchConfig;
/** If the specified value is a single element, then turn it into an array containing that element. */
function makeArray<T extends Exclude<any, any[]>>(value: T | T[]): T[] {
function makeArray<T extends Exclude<unknown, unknown[]>>(value: T | T[]): T[] {
if (Array.isArray(value)) {
return value;
} else {

View File

@@ -71,7 +71,7 @@ export interface LaunchConfig {
/** Run the query without debugging it. */
noDebug: boolean;
/** Undocumented: Additional arguments to be passed to the `runQuery` API on the query server. */
additionalRunQueryArgs: Record<string, any>;
additionalRunQueryArgs: Record<string, unknown>;
}
export interface LaunchRequest extends Request, DebugProtocol.LaunchRequest {