mirror of
https://gitverse.ru/kpa39l/telepost.git
synced 2026-09-29 18:05:08 +00:00
Initial commit
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
/// <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';
|
||||
Reference in New Issue
Block a user