feat(types): improve type safety for history and plugin modules

This commit is contained in:
pandadev 2025-03-05 13:39:07 +01:00
parent 43c1428dbb
commit 6ea877a1be
No known key found for this signature in database
GPG key ID: C39629DACB8E762F
2 changed files with 10 additions and 2 deletions

8
types/plugins.d.ts vendored Normal file
View file

@ -0,0 +1,8 @@
import { HistoryItem, ContentType } from './types';
declare module '#app' {
interface NuxtApp {
$history: ReturnType<typeof import('../plugins/history')>['provide']['history'];
$settings: ReturnType<typeof import('../plugins/settings')>['provide']['settings'];
}
}