Skip to content

Commit

Permalink
break out method type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornkihlberg committed Jan 30, 2024
1 parent 95c4958 commit e3477f0
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 312 deletions.
1 change: 1 addition & 0 deletions packages/adapter/src/io-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export function strictDynamicTypeCheck(strict: unknown): strict is boolean {
export class InvalidTypeError extends Error {
constructor(
public readonly errors: Errors,
public readonly value: any,
message?: string
) {
super(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const GetContractsRequestGuard = assertGuardEqual(
tags: t.array(Tag),
partyAddresses: t.array(AddressBech32Guard),
partyRoles: t.array(AssetId),
})
}) as t.Type<GetContractsRequest>
);

export type GETHeadersByRange = (
Expand Down
Loading

0 comments on commit e3477f0

Please sign in to comment.