Fix cursors
This commit is contained in:
parent
44f642f649
commit
fc40d3eccf
12 changed files with 711 additions and 529 deletions
|
|
@ -6,7 +6,7 @@ type ResolveFunction<T> = undefined extends T
|
|||
* A type-safe utility function to create a Promise with resolve and reject functions.
|
||||
* @returns A tuple containing a Promise, a resolve function, and a reject function.
|
||||
*/
|
||||
export function createPromise<T = unknown | undefined>(): [
|
||||
export function createPromise<T = unknown>(): [
|
||||
Promise<T>,
|
||||
ResolveFunction<T>,
|
||||
(error: unknown) => unknown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue