18 lines
322 B
TypeScript
18 lines
322 B
TypeScript
|
import lodash from 'lodash'
|
||
|
import { LoDashStatic } from 'lodash'
|
||
|
|
||
|
declare module '#app' {
|
||
|
interface NuxtApp {
|
||
|
$_: LoDashStatic;
|
||
|
}
|
||
|
}
|
||
|
declare module '@vue/runtime-core' {
|
||
|
interface ComponentCustomProperties {
|
||
|
$_: LoDashStatic;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default defineNuxtPlugin((nuxtApp) => {
|
||
|
nuxtApp.provide('_', lodash)
|
||
|
})
|