/** * The function `isModuleReady` checks if a module is ready and throws an error if it is not. * @param {boolean} ready - The `ready` parameter in the `isModuleReady` function is a boolean value * that indicates whether a certain module or hook is ready for use. If `ready` is `true`, it means the * module is ready, and if `ready` is `false`, it means the module is not */ export const isModuleReady = (ready: boolean): void => { if (!ready) { throw new Error( 'The hook is not ready, please check your credentials and link of the package' ); } };