MCPcopy
hub / github.com/vitejs/vite / PromiseWithResolvers

Interface PromiseWithResolvers

packages/vite/src/shared/utils.ts:71–75  ·  packages/vite/src/shared/utils.ts::PromiseWithResolvers

Source from the content-addressed store, hash-verified

69}
70
71export interface PromiseWithResolvers<T> {
72 promise: Promise<T>
73 resolve: (value: T | PromiseLike<T>) => void
74 reject: (reason?: any) => void
75}
76export function promiseWithResolvers<T>(): PromiseWithResolvers<T> {
77 let resolve: any
78 let reject: any

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected