UNPKG

i18n-pro

Version:

An out-of-the-box, lightweight JavaScript i18n auto-translation solution

13 lines (12 loc) 341 B
/// <reference types="node" /> import type { RequestOptions } from 'node:http'; /** * 基于内置 http封装请求方法 * @param url * @param options * @returns */ export default function fetch(url: string, options: { data: Record<string, unknown> | unknown; proxy?: string; } & RequestOptions): Promise<unknown>;