@oazmi/build-tools
Version:
general deno build tool scripts which I practically use in all of my typescript repos
10 lines • 649 B
TypeScript
import type { LoadResponse, LoadResponseRedirect } from "./types.js";
export declare function withResolvingRedirects(specifier: string, customLoad?: (specifier: string) => Promise<LoadResponse | undefined>): Promise<Exclude<LoadResponse, LoadResponseRedirect> | undefined>;
/** A Deno specific loader function that can be passed to the
* `createModuleGraph` which will use `Deno.readTextFile` for local files, or
* use `fetch()` for remote modules.
*
* @param specifier The string module specifier from the module graph.
*/
export declare function load(specifier: string): Promise<LoadResponse | undefined>;
//# sourceMappingURL=loader.d.ts.map