X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FEventsProvider.ts;h=d33cf1ed41eff24b99982b30b2400a9cd93bc499;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=111c2a5b9cb8d5ad5c5455b868f6fb5857ef25e0;hpb=2f243794d7f279cdc81628a94533b70404bbe888;p=ldk-java diff --git a/ts/structs/EventsProvider.ts b/ts/structs/EventsProvider.ts index 111c2a5b..d33cf1ed 100644 --- a/ts/structs/EventsProvider.ts +++ b/ts/structs/EventsProvider.ts @@ -34,7 +34,7 @@ import * as bindings from '../bindings' // TODO: figure out location // todo: in-line interface filling get_and_clear_pending_events (): number[] { Event[] ret = arg.get_and_clear_pending_events(); - result: number[] = (number[])Arrays.stream(ret).map(arr_conv_7 -> arr_conv_7.ptr).toArray(); + result: number[] = Arrays.stream(ret).map(arr_conv_7 -> arr_conv_7.ptr).toArray(number[]::new); /* TODO 2 Event */; return result; },