mirror of
https://gitverse.ru/kpa39l/telepost.git
synced 2026-09-29 18:05:08 +00:00
22 lines
634 B
TypeScript
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';
|