Skip to content

Commit

Permalink
fix: provide type to parsedLogs
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnoW committed Sep 19, 2022
1 parent 7f54597 commit 688dc41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lazy-lies-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moralisweb3/streams': patch
---

Fix for providing a custom type to `Moralis.Streams.parsedLogs<MyEvent>()`. This now works as expected, and the returned type is of `MyEvent[]`
2 changes: 1 addition & 1 deletion packages/streams/src/MoralisStreams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ export class MoralisStreams extends ApiModule {

public readonly verifySignature = (options: VerifySignatureOptions) => makeVerifySignature(this.core)(options);

public readonly parsedLogs = (options: ParseLogOptions) => parseLog(options);
public readonly parsedLogs = <Event>(options: ParseLogOptions) => parseLog<Event>(options);
}

0 comments on commit 688dc41

Please sign in to comment.