-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Today, borsher does not perform type inference using the structure of schema:
const schema = BorshSchema.Struct({
myU64: BorshSchema.u64,
myBool: BorshSchema.bool,
});
// x is typed as "unknown"
const x = borshDeserialize(schema, bytes);It's certainly possible for TypeScript to infer the type of x as { myU64: bigint; myBool: boolean }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels