export interface LegacySignRawTxRequest {
/** Raw transaction protobuf */
rawTx: PbCom2RawTransaction;
/** Input notes (protobuf) */
notes: PbCom2Note[];
/** Spend conditions (protobuf) */
spendConditions: PbCom2SpendCondition[];
}
function isLegacySignRawTxRequest(obj: unknown): obj is LegacySignRawTxRequest {
// ...
}
https://github.com/nockbox/iris/blob/7a5109949963e132283a5b8347670e83893745d8/extension/background/index.ts#L675
should use guards
You probably want to define a struct for
LegacySignRawTxRequest:Type names not exact:
Define
isLegacySignRawTxRequest:Corresponds to part of https://github.com/nockbox/iris/blob/7a5109949963e132283a5b8347670e83893745d8/extension/shared/types.ts#L152