Preparing search index...
The search index is not available bun-types
callbackify( fn: ( ( ) => Promise < void > ) ) : ( ( callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( ) => Promise < void > )
( ) : Promise < void >
Returns Promise < void >
Returns ( ( callback: ( ( err: ErrnoException ) => void ) ) => void )
callbackify< TResult > ( fn: ( ( ) => Promise < TResult > ) ) : ( ( callback: ( ( err: ErrnoException , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( ) => Promise < TResult > )
( ) : Promise < TResult >
Returns Promise < TResult >
Returns ( ( callback: ( ( err: ErrnoException , result: TResult ) => void ) ) => void )
( callback: ( ( err: ErrnoException , result: TResult ) => void ) ) : void
Returns void
callbackify< T1 > ( fn: ( ( arg1: T1 ) => Promise < void > ) ) : ( ( arg1: T1 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 ) => Promise < void > )
( arg1: T1 ) : Promise < void >
Returns Promise < void >
Returns ( ( arg1: T1 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , callback: ( ( err: ErrnoException ) => void ) ) : void
Returns void
callbackify< T1 , TResult > ( fn: ( ( arg1: T1 ) => Promise < TResult > ) ) : ( ( arg1: T1 , callback: ( ( err: ErrnoException , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 ) => Promise < TResult > )
( arg1: T1 ) : Promise < TResult >
Returns Promise < TResult >
Returns ( ( arg1: T1 , callback: ( ( err: ErrnoException , result: TResult ) => void ) ) => void )
( arg1: T1 , callback: ( ( err: ErrnoException , result: TResult ) => void ) ) : void
Returns void
callbackify< T1 , T2 > ( fn: ( ( arg1: T1 , arg2: T2 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 ) => Promise < void > )
( arg1: T1 , arg2: T2 ) : Promise < void >
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException ) => void ) ) : void
Returns void
callbackify< T1 , T2 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 ) : Promise < TResult >
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify< T1 , T2 , T3 > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 ) => Promise < void > )
( arg1: T1 , arg2: T2 , arg3: T3 ) : Promise < void >
Parameters
arg1: T1
arg2: T2
arg3: T3
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
Returns void
callbackify< T1 , T2 , T3 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 , arg3: T3 ) : Promise < TResult >
Parameters
arg1: T1
arg2: T2
arg3: T3
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify< T1 , T2 , T3 , T4 > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) => Promise < void > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) : Promise < void >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
Returns void
callbackify< T1 , T2 , T3 , T4 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) : Promise < TResult >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify< T1 , T2 , T3 , T4 , T5 > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) => Promise < void > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) : Promise < void >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
Returns void
callbackify< T1 , T2 , T3 , T4 , T5 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) : Promise < TResult >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify< T1 , T2 , T3 , T4 , T5 , T6 > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) => Promise < void > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) : Promise < void >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
arg6: T6
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
arg6: T6
Returns void
callbackify< T1 , T2 , T3 , T4 , T5 , T6 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Type Parameters
T1
T2
T3
T4
T5
T6
TResult
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) : Promise < TResult >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
arg6: T6
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
arg6: T6
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify( fn: ( ( ) => Promise < void > ) ) : ( ( callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( ) => Promise < void > )
( ) : Promise < void >
Returns Promise < void >
Returns ( ( callback: ( ( err: ErrnoException ) => void ) ) => void )
callbackify< TResult > ( fn: ( ( ) => Promise < TResult > ) ) : ( ( callback: ( ( err: ErrnoException , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( ) => Promise < TResult > )
( ) : Promise < TResult >
Returns Promise < TResult >
Returns ( ( callback: ( ( err: ErrnoException , result: TResult ) => void ) ) => void )
( callback: ( ( err: ErrnoException , result: TResult ) => void ) ) : void
Returns void
callbackify< T1 > ( fn: ( ( arg1: T1 ) => Promise < void > ) ) : ( ( arg1: T1 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 ) => Promise < void > )
( arg1: T1 ) : Promise < void >
Returns Promise < void >
Returns ( ( arg1: T1 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , callback: ( ( err: ErrnoException ) => void ) ) : void
Returns void
callbackify< T1 , TResult > ( fn: ( ( arg1: T1 ) => Promise < TResult > ) ) : ( ( arg1: T1 , callback: ( ( err: ErrnoException , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 ) => Promise < TResult > )
( arg1: T1 ) : Promise < TResult >
Returns Promise < TResult >
Returns ( ( arg1: T1 , callback: ( ( err: ErrnoException , result: TResult ) => void ) ) => void )
( arg1: T1 , callback: ( ( err: ErrnoException , result: TResult ) => void ) ) : void
Returns void
callbackify< T1 , T2 > ( fn: ( ( arg1: T1 , arg2: T2 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 ) => Promise < void > )
( arg1: T1 , arg2: T2 ) : Promise < void >
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException ) => void ) ) : void
Returns void
callbackify< T1 , T2 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 ) : Promise < TResult >
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify< T1 , T2 , T3 > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 ) => Promise < void > )
( arg1: T1 , arg2: T2 , arg3: T3 ) : Promise < void >
Parameters
arg1: T1
arg2: T2
arg3: T3
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
Returns void
callbackify< T1 , T2 , T3 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 , arg3: T3 ) : Promise < TResult >
Parameters
arg1: T1
arg2: T2
arg3: T3
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify< T1 , T2 , T3 , T4 > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) => Promise < void > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) : Promise < void >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
Returns void
callbackify< T1 , T2 , T3 , T4 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 ) : Promise < TResult >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify< T1 , T2 , T3 , T4 , T5 > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) => Promise < void > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) : Promise < void >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
Returns void
callbackify< T1 , T2 , T3 , T4 , T5 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 ) : Promise < TResult >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
callbackify< T1 , T2 , T3 , T4 , T5 , T6 > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) => Promise < void > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException ) => void ) ) => void )
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) => Promise < void > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) : Promise < void >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
arg6: T6
Returns Promise < void >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
arg6: T6
Returns void
callbackify< T1 , T2 , T3 , T4 , T5 , T6 , TResult > ( fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) => Promise < TResult > ) ) : ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
Type Parameters
T1
T2
T3
T4
T5
T6
TResult
Parameters
fn: ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) => Promise < TResult > )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 ) : Promise < TResult >
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
arg6: T6
Returns Promise < TResult >
Returns ( ( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) => void )
( arg1: T1 , arg2: T2 , arg3: T3 , arg4: T4 , arg5: T5 , arg6: T6 , callback: ( ( err: ErrnoException | null , result: TResult ) => void ) ) : void
Parameters
arg1: T1
arg2: T2
arg3: T3
arg4: T4
arg5: T5
arg6: T6
callback: ( ( err: ErrnoException | null , result: TResult ) => void )
Returns void
Takes an
async
function (or a function that returns aPromise
) and returns a function following the error-first callback style, i.e. taking an(err, value) => ...
callback as the last argument. In the callback, the first argument will be the rejection reason (ornull
if thePromise
resolved), and the second argument will be the resolved value.Will print:
The callback is executed asynchronously, and will have a limited stack trace. If the callback throws, the process will emit an
'uncaughtException'
event, and if not handled will exit.Since
null
has a special meaning as the first argument to a callback, if a wrapped function rejects aPromise
with a falsy value as a reason, the value is wrapped in anError
with the original value stored in a field namedreason
.Returns
a callback style function