Skip to content

Commit

Permalink
fix: make dataPackagesIds obligatory parameter (#2702)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiszczatowski authored May 21, 2024
1 parent f42082d commit b59ea71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/evm-connector/src/wrappers/DataServiceWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ import { Contract } from "ethers";
import { version } from "../../package.json";
import { BaseWrapper } from "./BaseWrapper";

export type DataPackagesRequestInput = Partial<DataPackagesRequestParams>;
type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };

export type DataPackagesRequestInput = WithRequired<
Partial<DataPackagesRequestParams>,
"dataPackagesIds"
>;

export class DataServiceWrapper<T extends Contract> extends BaseWrapper<T> {
constructor(
Expand Down

0 comments on commit b59ea71

Please sign in to comment.