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 }