MCPcopy Index your code
hub / github.com/changesets/changesets / PromiseWithResolvers

Interface PromiseWithResolvers

packages/cli/src/utils/createPromiseQueue.ts:1–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1interface PromiseWithResolvers<T> {
2 promise: Promise<T>;
3 resolve: (value: T | PromiseLike<T>) => void;
4 reject: (reason?: any) => void;
5}
6
7function withResolvers<T>(): PromiseWithResolvers<T> {
8 const rv = {} as PromiseWithResolvers<T>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected