Skip to content

Commit f34bc10

Browse files
authored
Merge pull request feathersjs-ecosystem#444 from bitflower/master
fix: isProvider returns a boolean
2 parents ababcf5 + da92c72 commit f34bc10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export function getItems(context: HookContext): any; // any[] | any | undefined;
210210
* Check which transport provided the service call.
211211
* {@link https://feathers-plus.github.io/v1/feathers-hooks-common/index.html#IsProvider}
212212
*/
213-
export function isProvider(...transports: TransportName[]): PredicateFn;
213+
export function isProvider(...transports: TransportName[]): SyncContextFunction<boolean>;
214214

215215
/**
216216
* Keep certain fields in the record(s), deleting the rest.

types/tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ getByDot({}, 'abc.def');
196196
// $ExpectType any
197197
getItems(context1);
198198

199-
// $ExpectType PredicateFn
199+
// $ExpectType SyncContextFunction<boolean>
200200
isProvider();
201201

202202
// $ExpectType Hook

0 commit comments

Comments
 (0)