mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 14:56:17 -04:00
17 lines
441 B
TypeScript
17 lines
441 B
TypeScript
![]() |
// @ts-nocheck
|
||
|
import {Plugin} from '@nuxt/types'
|
||
|
import type {ToolRouteConfig} from '~/types/ToolConfig';
|
||
|
|
||
|
declare module 'vue/types/vue' {
|
||
|
interface Vue {
|
||
|
$toolListFlat: ToolRouteConfig[]
|
||
|
$toolList: { [key: string]: ToolRouteConfig[] }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const plugin: Plugin = (_, inject) => {
|
||
|
inject('toolListFlat', <%= serialize(options.toolListFlat) %>)
|
||
|
inject('toolList', <%= serialize(options.toolList) %>)
|
||
|
}
|
||
|
export default plugin
|