Type on the wire null, expect type record

Does anyone know how to pass the record type parameter to the canistermethod through JS

Does this help?