UNPKG

@scayle/storefront-nuxt

Version:

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

22 lines (21 loc) 689 B
import type { Log } from '@scayle/storefront-core'; /** * Nuxt plugin to provide logging functionality for the client-environment (VueApp). * * This plugin initializes a client-side logger using `consola` and adds error handling to the Vue app. * It provides `log` and `coreLog` instances. * * @see https://nuxt.com/docs/guide/directory-structure/plugins#providing-helpers * * @param nuxtApp The Nuxt app instance. * * @returns helper on the `NuxtApp` containing the 'log' and 'coreLog' instances. */ declare const _default: import("#app").Plugin<{ log: Log; coreLog: Log; }> & import("#app").ObjectPlugin<{ log: Log; coreLog: Log; }>; export default _default;