dax
Version:
Cross platform shell tools inspired by zx.
15 lines • 703 B
TypeScript
import { type Delay } from "../deps/jsr.io/@david/shell/0.6.0/mod.js";
/** A timeout error. */
export declare class TimeoutError extends Error {
constructor(message: string);
get name(): string;
}
/** An iterator that returns a new delay each time. */
export interface DelayIterator {
next(): number;
}
export declare function delayToIterator(delay: Delay | DelayIterator): DelayIterator;
export declare function formatMillis(ms: number): string;
export declare function filterEmptyRecordValues<TValue>(record: Record<string, TValue | undefined>): Record<string, TValue>;
export declare function getFileNameFromUrl(url: string | URL): string | undefined;
//# sourceMappingURL=common.d.ts.map