Skip to content

Commit

Permalink
Make fields optional for Range and PaginationOptions interfaces (#552)
Browse files Browse the repository at this point in the history
* fix: make fields optional for Range and PaginationOptions interfaces

* fix: make fields optional for FilterEventLogsOptions interface
  • Loading branch information
fabiorigam authored Feb 12, 2024
1 parent f5ee48d commit 8b0d2fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/network/src/thor-client/logs/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ interface Range {
/**
* The unit for specifying the range (block or time).
*/
unit: 'block' | 'time'; // The unit for specifying the range (block or time).
unit?: 'block' | 'time'; // The unit for specifying the range (block or time).

/**
* The starting point of the range.
*/
from: number;
from?: number;

/**
* The ending point of the range.
*/
to: number;
to?: number;
}

/**
Expand All @@ -27,12 +27,12 @@ interface PaginationOptions {
/**
* Offset for pagination.
*/
offset: number;
offset?: number;

/**
* Limit for the number of results to return.
*/
limit: number;
limit?: number;
}

/**
Expand Down Expand Up @@ -73,11 +73,11 @@ interface FilterEventLogsOptions {
/**
* Event filters
*/
criteriaSet: EventCriteria[];
criteriaSet?: EventCriteria[];
/**
* Sorting order
*/
order: EventDisplayOrder;
order?: EventDisplayOrder;
}

/**
Expand Down

1 comment on commit 8b0d2fa

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 100%
100% (2475/2475) 100% (497/497) 100% (525/525)
Title Tests Skipped Failures Errors Time
core 409 0 💤 0 ❌ 0 🔥 1m 7s ⏱️
network 234 0 💤 0 ❌ 0 🔥 2m 33s ⏱️
errors 43 0 💤 0 ❌ 0 🔥 8.816s ⏱️

Please sign in to comment.