@whatwg-node/node-fetch
Version:
Fetch API implementation for Node
16 lines (15 loc) • 573 B
TypeScript
/// <reference types="packages/node-fetch/src/declarations.js" />
import FastUrl from '@kamilkisiela/fast-url-parser';
import { PonyfillURLSearchParams } from './URLSearchParams.js';
export declare class PonyfillURL extends FastUrl implements URL {
constructor(url: string, base?: string | URL);
get origin(): string;
private _searchParams?;
get searchParams(): PonyfillURLSearchParams;
get username(): string;
set username(value: string);
get password(): string;
set password(value: string);
toString(): string;
toJSON(): string;
}