chore: Move dynamically generated type definitions into generated/

This commit is contained in:
Magnus Leßmann (@Mark.TwoFive) 2025-06-22 11:14:25 +02:00
parent b6db17e7d8
commit dca9845fe9
Signed by: Mark.TwoFive
GPG key ID: 58204042FE30B10C
2 changed files with 6 additions and 29 deletions

View file

@ -1,27 +0,0 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-router. ‼️ DO NOT MODIFY THIS FILE ‼️
// It's recommended to commit this file.
// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.
declare module 'vue-router/auto-routes' {
import type {
RouteRecordInfo,
ParamValue,
ParamValueOneOrMore,
ParamValueZeroOrMore,
ParamValueZeroOrOne,
} from 'vue-router'
/**
* Route name map generated by unplugin-vue-router
*/
export interface RouteNamedMap {
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
'/cert-request': RouteRecordInfo<'/cert-request', '/cert-request', Record<never, never>, Record<never, never>>,
'/certificates/': RouteRecordInfo<'/certificates/', '/certificates', Record<never, never>, Record<never, never>>,
'/certificates/[fingerprint]': RouteRecordInfo<'/certificates/[fingerprint]', '/certificates/:fingerprint', { fingerprint: ParamValue<true> }, { fingerprint: ParamValue<false> }>,
'/certificates/new': RouteRecordInfo<'/certificates/new', '/certificates/new', Record<never, never>, Record<never, never>>,
}
}

View file

@ -9,7 +9,9 @@ import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [
VueRouter(),
VueRouter({
dts: './src/generated/typed-routes.d.ts'
}),
Vue({
template: { transformAssetUrls },
}),
@ -19,7 +21,9 @@ export default defineConfig({
configFile: 'src/styles/settings.scss',
},
}),
Components(),
Components({
dts: './src/generated/components.d.ts',
}),
ViteFonts({
google: {
families: [ {