@tempfix/watcher
Version:
The file system watcher that strives for perfection, with no native dependencies and optional rename detection support.
20 lines (13 loc) • 385 B
text/typescript
/* MAIN */
type PromiseResolve <T> = ( value: T | PromiseLike<T> ) => void;
type PromiseReject = ( reason?: unknown ) => void;
type Result <T> = {
promise: Promise<T>,
resolve: PromiseResolve<T>,
reject: PromiseReject,
isPending: () => boolean,
isResolved: () => boolean,
isRejected: () => boolean
};
/* EXPORT */
export type {PromiseResolve, PromiseReject, Result};