11import type { WalkerOS } from '@elbwalker/types' ;
2- import type { SourceNode , DestinationNode } from '../types' ;
2+ import type { SourceNode , DestinationNode , Elb } from '../types' ;
33import {
44 assign ,
55 getGrantedConsent ,
@@ -15,13 +15,13 @@ export function createPush(
1515 instance : SourceNode . Instance ,
1616 handleCommand : SourceNode . HandleCommand ,
1717 handleEvent : SourceNode . HandleEvent ,
18- ) : SourceNode . Elb {
19- const push : SourceNode . Elb = async (
18+ ) : Elb . Fn < Promise < Elb . PushResult > > {
19+ const push = async (
2020 nameOrEvent : string | WalkerOS . DeepPartialEvent ,
21- data ?: SourceNode . PushData ,
22- options ?: SourceNode . PushOptions ,
23- ) : Promise < SourceNode . PushResult > => {
24- let result : SourceNode . PushResult = {
21+ data ?: Elb . PushData ,
22+ options ?: Elb . PushOptions ,
23+ ) => {
24+ let result : Elb . PushResult = {
2525 status : { ok : false } ,
2626 successful : [ ] ,
2727 queued : [ ] ,
@@ -31,9 +31,9 @@ export function createPush(
3131 return await tryCatchAsync (
3232 async (
3333 nameOrEvent : string | WalkerOS . DeepPartialEvent ,
34- data ?: SourceNode . PushData ,
35- options ?: SourceNode . PushOptions ,
36- ) : Promise < SourceNode . PushResult > => {
34+ data ?: Elb . PushData ,
35+ options ?: Elb . PushOptions ,
36+ ) : Promise < Elb . PushResult > => {
3737 const { event, command } = createEventOrCommand (
3838 instance ,
3939 nameOrEvent ,
0 commit comments