Files
2026-01-18 21:01:43 +03:00

22 lines
634 B
TypeScript

/// <reference types="node" resolution-mode="require"/>
/**
* @param {URL} url
* @param {{parentURL: string}} context
* @returns {string | null}
*/
export function defaultGetFormatWithoutErrors(url: URL, context: {
parentURL: string;
}): string | null;
/**
* @param {string} url
* @param {{parentURL: string}} context
* @returns {null | string | void}
*/
export function defaultGetFormat(url: string, context: {
parentURL: string;
}): null | string | void;
export type ProtocolHandler = (parsed: URL, context: {
parentURL: string;
}, ignoreErrors: boolean) => string | null | void;
import { URL } from 'node:url';