Update immutable method signature and type docs to adhere to ES6