Readonlycode: Exclude<ShamirErrorCode, "InvalidParameter">One of the reference's eight codes; no payload.
Readonlycode: "InvalidParameter"An argument outside its domain: an integer that is not a usize, or a value of the wrong type.
Readonlyparameter: ShamirParameterThe argument.
Readonlyvalue: unknownThe value received, as passed.
The structured payload of a ShamirError, discriminated by
code. OnlyInvalidParametercarries data:e.details.code === "InvalidParameter"narrows to{ parameter, value }.