()
| 11 | /** @since 3.0.0 */ |
| 12 | /* @__NO_SIDE_EFFECTS__ */ |
| 13 | export const useError = (): Ref<NuxtPayload['error']> => toRef(useNuxtApp().payload, 'error') |
| 14 | |
| 15 | // #34138 - `Omit` breaks the Error inheritance chain, causing `@typescript-eslint/only-throw-error` to fail |
| 16 | // Adding `Error` explicitly restores throwability. TODO: remove `Error` in Nuxt 5 when `Omit` is no longer needed |
no test coverage detected
searching dependent graphs…