2023-06-28 05:01:17 -04:00
|
|
|
import lodash from 'lodash'
|
2024-04-16 12:13:28 -04:00
|
|
|
import type { LoDashStatic } from 'lodash'
|
2023-06-28 05:01:17 -04:00
|
|
|
|
|
|
|
declare module '#app' {
|
2024-04-17 03:55:57 -04:00
|
|
|
interface NuxtApp {
|
|
|
|
$_: LoDashStatic
|
|
|
|
}
|
2023-06-28 05:01:17 -04:00
|
|
|
}
|
|
|
|
declare module '@vue/runtime-core' {
|
2024-04-17 03:55:57 -04:00
|
|
|
interface ComponentCustomProperties {
|
|
|
|
$_: LoDashStatic
|
|
|
|
}
|
2023-06-28 05:01:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
|
|
nuxtApp.provide('_', lodash)
|
|
|
|
})
|