steam-family-bot-core
Version:
一个用于新版 Steam 家庭的库存监控 Bot 插件
24 lines (23 loc) • 1.06 kB
TypeScript
import { $Fetch, FetchOptions } from 'ofetch';
export declare const rofetch: $Fetch;
export type ExtendFetchOptions = {
form?: Record<string, any>;
json?: Record<string, any>;
searchParams?: Record<string, any>;
cache?: boolean;
} & FetchOptions;
export declare class Fetch {
private options?;
private ofetchInstance;
constructor(fetchInstance?: $Fetch, options?: FetchOptions);
private fetch;
get<T extends any = any>(request: string, options?: ExtendFetchOptions): Promise<T>;
post<T extends any = any>(request: string, options?: ExtendFetchOptions): Promise<T>;
put<T extends any = any>(request: string, options?: ExtendFetchOptions): Promise<T>;
patch<T extends any = any>(request: string, options?: ExtendFetchOptions): Promise<T>;
delete<T extends any = any>(request: string, options?: ExtendFetchOptions): Promise<T>;
head(request: string, options?: ExtendFetchOptions): Promise<any>;
extend(options: FetchOptions): Fetch;
baseUrl(url: string): Fetch;
}
export { createFetch } from 'ofetch';