UNPKG

@tempfix/watcher

Version:

The file system watcher that strives for perfection, with no native dependencies and optional rename detection support.

12 lines (11 loc) 364 B
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 type { PromiseResolve, PromiseReject, Result };