Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
22 lines
1.1 KiB
TypeScript
22 lines
1.1 KiB
TypeScript
import * as MappingEntry from "./mapping-entry";
|
|
import * as Filesystem from "./filesystem";
|
|
/**
|
|
* Function that can match a path async
|
|
*/
|
|
export interface MatchPathAsync {
|
|
(requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: ReadonlyArray<string> | undefined, callback: MatchPathAsyncCallback): void;
|
|
}
|
|
export interface MatchPathAsyncCallback {
|
|
(err?: Error, path?: string): void;
|
|
}
|
|
/**
|
|
* See the sync version for docs.
|
|
*/
|
|
export declare function createMatchPathAsync(absoluteBaseUrl: string, paths: {
|
|
[key: string]: Array<string>;
|
|
}, mainFields?: string[], addMatchAll?: boolean): MatchPathAsync;
|
|
/**
|
|
* See the sync version for docs.
|
|
*/
|
|
export declare function matchFromAbsolutePathsAsync(absolutePathMappings: ReadonlyArray<MappingEntry.MappingEntry>, requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: readonly string[] | undefined, callback: MatchPathAsyncCallback, mainFields?: string[]): void;
|