@transcend-io/encrypt-web-streams
Version:
WebAssembly-powered streaming AES-256-GCM encryption and decryption with a web-native TransformStream API.
9 lines • 352 B
TypeScript
interface PromiseWithResolvers<T> {
promise: Promise<T>;
resolve: (value: T | PromiseLike<T>) => void;
reject: (reason?: unknown) => void;
}
/** Equivalent to `Promise.withResolvers()` which is an ES2024 feature */
export declare const promiseWithResolvers: <T>() => PromiseWithResolvers<T>;
export {};
//# sourceMappingURL=helpers.d.ts.map