/* @flow */
export default (errorMessage: string) => {throw errorMessage}

/** @flow */
export default (errorMessage: string): any => { throw errorMessage }

Fix missing return type on requiredParameter.js.