@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
13 lines (12 loc) • 400 B
TypeScript
/** File resolved by URL resolver */
export interface UrlFile {
/** Absolute path to file */
from: string;
/** File source */
source: Uint8Array;
/** Original query extracted from the input path */
urlQuery?: string;
}
/** URL resolver */
export type UrlResolve = (inputUrl: string, baseDirectories: string[]) => Promise<UrlFile>;
export declare const urlResolve: UrlResolve;