ffplayout/plugins/lodash.client.ts

18 lines
349 B
TypeScript
Raw Normal View History

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