File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
packages/sources/node/src/types Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11import type { Elb , WalkerOS } from '@elbwalker/types' ;
22import { DestinationNode , SourceNode } from '.' ;
33
4- export interface Fn < R = Promise < PushResult > >
5- extends Elb . Fn < R > ,
6- Parameters < R > ,
7- Event < R > { }
4+ export interface Fn < R = Return > extends Elb . Fn < R > , Parameters < R > , Event < R > { }
85
9- export type Parameters < R = Promise < PushResult > > = (
6+ export type Parameters < R = Return > = (
107 name : string ,
118 data ?: PushData ,
129 options ?: PushOptions ,
1310) => R ;
1411
15- export type Event < R = Promise < PushResult > > = (
12+ export type Event < R = Return > = (
1613 event : WalkerOS . DeepPartialEvent ,
1714 data ?: PushData ,
1815 options ?: PushOptions ,
@@ -29,3 +26,5 @@ export interface PushResult extends DestinationNode.PushResult {
2926 event ?: WalkerOS . Event ;
3027 status : SourceNode . Status ;
3128}
29+
30+ export type Return < R = Promise < PushResult > > = R ;
You can’t perform that action at this time.
0 commit comments