@@ -260,7 +260,7 @@ const fgraphqlOptions2: FGraphQLHookOptions = {
260
260
Query : { }
261
261
} ,
262
262
options : {
263
- extraAuthProps : [ 'asdf' ] ,
263
+ extraAuthProps : [ 'asdf' ] ,
264
264
inclAllFields : false ,
265
265
inclJoinedNames : false ,
266
266
inclAllFieldsClient : true ,
@@ -306,7 +306,7 @@ makeCallingParams(
306
306
// tslint:disable-next-line
307
307
class ObjId {
308
308
// tslint:disable-next-line
309
- constructor ( id ?: string | number ) { }
309
+ constructor ( id ?: string | number ) { }
310
310
}
311
311
312
312
// $ExpectType Hook
@@ -388,17 +388,17 @@ setNow('createdAt', 'updatedAt');
388
388
setSlug ( 'storeId' ) ;
389
389
390
390
// $ExpectType Hook
391
- sequelizeConvert ( {
391
+ sequelizeConvert ( {
392
392
aBool : 'boolean' ,
393
393
aDate : 'date' ,
394
394
anObject : 'json' ,
395
395
aNumber : 'strToInt'
396
396
} , null , {
397
- strToInt : {
398
- js : ( sqlValue : string ) => + sqlValue ,
399
- sql : ( jsValue : number ) => `${ jsValue } ` ,
400
- }
401
- } ) ;
397
+ strToInt : {
398
+ js : ( sqlValue : string ) => + sqlValue ,
399
+ sql : ( jsValue : number ) => `${ jsValue } ` ,
400
+ }
401
+ } ) ;
402
402
403
403
// $ExpectType Hook
404
404
sifter ( ctx => item => true ) ;
@@ -449,11 +449,17 @@ validateSchema({}, ajv);
449
449
450
450
// $ExpectType Hook
451
451
iffElse ( syncTrue , [ hook1 , hook2 ] , [ hook3 , hook4 ] ) ;
452
+ // $ExpectType Hook
453
+ iffElse ( asyncTrue , [ hook1 , hook2 ] , [ hook3 , hook4 ] ) ;
452
454
453
455
// $ExpectType IffHook
454
456
iff ( syncTrue , hook1 , hook2 ) ;
457
+ // $ExpectType IffHook
458
+ iff ( asyncTrue , hook1 , hook2 ) ;
455
459
// $ExpectType Hook
456
460
iff ( syncTrue , hook1 , hook2 ) . else ( hook3 , hook4 ) ;
461
+ // $ExpectType Hook
462
+ iff ( asyncTrue , hook1 , hook2 ) . else ( hook3 , hook4 ) ;
457
463
458
464
// $ExpectType IffHook
459
465
when ( syncTrue , hook1 , hook2 ) ;
0 commit comments