Convert debug-protocol and friends to use unknown instead of any
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user