update vscode

This commit is contained in:
Siheng Zhao
2024-01-08 23:09:12 +08:00
parent 2b09b7ce41
commit 4f165cd618
1951 changed files with 303273 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
/// <reference types="node" />
import { IncomingMessage } from 'http';
export declare function getStream(api: string, timeout: number): Promise<IncomingMessage>;
export declare function getJSON<T>(api: string, timeout: number): Promise<T>;
export declare class TimeoutController {
private readonly timeout;
private handle;
private readonly ctrl;
get signal(): AbortSignal;
constructor(timeout: number);
touch(): void;
dispose(): void;
private readonly reject;
}
export declare class TimeoutError extends Error {
constructor(duration: number);
}