mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 15:56:15 -04:00
16 lines
441 B
TypeScript
16 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
|