文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.d.ts
编辑文件内容
/// <reference types="node" /> import { Url } from 'url'; import { SocksProxy } from 'socks'; import tls from 'tls'; import { AgentOptions } from 'agent-base'; import _SocksProxyAgent from './agent'; declare function createSocksProxyAgent(opts: string | createSocksProxyAgent.SocksProxyAgentOptions): _SocksProxyAgent; declare namespace createSocksProxyAgent { interface BaseSocksProxyAgentOptions { host?: string | null; port?: string | number | null; username?: string | null; tls?: tls.ConnectionOptions | null; } export interface SocksProxyAgentOptions extends AgentOptions, BaseSocksProxyAgentOptions, Partial<Omit<Url & SocksProxy, keyof BaseSocksProxyAgentOptions>> { } export type SocksProxyAgent = _SocksProxyAgent; export const SocksProxyAgent: typeof _SocksProxyAgent; export {}; } export = createSocksProxyAgent;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件