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;
|
extensionPacks?: string[] | string;
|
||||||
quickEval?: boolean;
|
quickEval?: boolean;
|
||||||
noDebug?: 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;
|
export type QLResolvedDebugConfiguration = DebugConfiguration & LaunchConfig;
|
||||||
|
|
||||||
/** If the specified value is a single element, then turn it into an array containing that element. */
|
/** 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)) {
|
if (Array.isArray(value)) {
|
||||||
return value;
|
return value;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export interface LaunchConfig {
|
|||||||
/** Run the query without debugging it. */
|
/** Run the query without debugging it. */
|
||||||
noDebug: boolean;
|
noDebug: boolean;
|
||||||
/** Undocumented: Additional arguments to be passed to the `runQuery` API on the query server. */
|
/** 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 {
|
export interface LaunchRequest extends Request, DebugProtocol.LaunchRequest {
|
||||||
|
|||||||
Reference in New Issue
Block a user