Skip to content

Commit

Permalink
Don't widen the type of parsed to any when parsing the server res…
Browse files Browse the repository at this point in the history
…ponse, because that makes it optional on the result
  • Loading branch information
steveluscher committed Jun 28, 2024
1 parent e419a45 commit 8c9ee5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/library-legacy/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ export type SimulatedTransactionResponse = {
const ParsedInstructionStruct = pick({
program: string(),
programId: PublicKeyFromString,
parsed: any(),
parsed: unknown(),
});

const PartiallyDecodedInstructionStruct = pick({
Expand Down Expand Up @@ -1208,7 +1208,7 @@ export type ParsedInstruction = {
/** ID of the program for this instruction */
programId: PublicKey;
/** Parsed instruction info */
parsed?: any;
parsed: any;
};

/**
Expand Down

0 comments on commit 8c9ee5f

Please sign in to comment.