printer-notifications/node_modules/import-meta-resolve/lib/get-format.d.ts
2023-11-13 16:10:04 -05:00

13 lines
355 B
TypeScript

/**
* @param {URL} url
* @param {{parentURL: string}} context
* @returns {string | null}
*/
export function defaultGetFormatWithoutErrors(url: URL, context: {
parentURL: string;
}): string | null;
export type ProtocolHandler = (parsed: URL, context: {
parentURL: string;
source?: Buffer;
}, ignoreErrors: boolean) => string | null | void;