Skip to content

Commit 9b0a84b

Browse files
Jan LohageJan Lohage
authored andcommitted
unbreak typings for deprecated functions
1 parent 31c0927 commit 9b0a84b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

types/index.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -457,49 +457,49 @@ export function isNot(predicate: PredicateFn): AsyncPredicateFn;
457457
/**
458458
* @deprecated Deprecated callbackToPromise in favor of Node’s require('util').promisify.
459459
*/
460-
export function callbackToPromise(): any;
460+
export function callbackToPromise(...args: any[]): any;
461461

462462
/**
463463
* @deprecated Deprecated client in favor of paramsFromClient for naming consistency.
464464
*/
465-
export function client(): any;
465+
export function client(...args: any[]): any;
466466

467467
/**
468468
* @deprecated Deprecated pluck in favor of keep, e.g. iff(isProvider('external'), keep(...fieldNames)). This deprecates the last hook with unexpected internal “magic”. Be careful!
469469
*/
470-
export function pluck(): any;
470+
export function pluck(...args: any[]): any;
471471

472472
/**
473473
* @deprecated Deprecated pluckQuery in favor of keepQuery for naming consistency.
474474
*/
475-
export function pluckQuery(): any;
475+
export function pluckQuery(...args: any[]): any;
476476

477477
/**
478478
* @deprecated Deprecated promiseToCallback as there’s probably no need for it anymore.
479479
*/
480-
export function promiseToCallback(): any;
480+
export function promiseToCallback(...args: any[]): any;
481481

482482
/**
483483
* @deprecated Deprecated removeQuery in favor of discardQuery for naming consistency.
484484
*/
485-
export function removeQuery(): any;
485+
export function removeQuery(...args: any[]): any;
486486

487487
/**
488488
* @deprecated Deprecated in favor of setNow.
489489
*/
490-
export function setCreatedAt(): any;
490+
export function setCreatedAt(...args: any[]): any;
491491

492492
/**
493493
* @deprecated Deprecated in favor of setNow.
494494
*/
495-
export function setUpdatedAt(): any;
495+
export function setUpdatedAt(...args: any[]): any;
496496

497497
/**
498498
* @deprecated DEPRECATED. Use the softDelete2 hook instead. It is a noteable improvement over softDelete.
499499
*/
500-
export function softDelete(): any;
500+
export function softDelete(...args: any[]): any;
501501

502502
/**
503503
* @deprecated DEPRECATED. Use disallow instead.
504504
*/
505-
export function disable(): any;
505+
export function disable(...args: any[]): any;

0 commit comments

Comments
 (0)