jointrashposs/types/misc.d.ts

57 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-11-12 05:21:23 +01:00
import type { LocaleCodes } from './../nuxt.config';
import type { ComputedRef } from 'vue-demi';
import type { LocaleObject } from '@nuxtjs/i18n';
import { FunctionalComponent, SVGAttributes } from '#app/compat/capi';
export { };
2023-11-12 05:21:23 +01:00
2023-07-08 10:36:02 +02:00
declare module '*.svg' {
const src: FunctionalComponent<SVGAttributes>;
export default src;
2023-09-24 12:43:14 +02:00
}
declare module 'nuxt/schema' {
2023-11-12 05:21:23 +01:00
interface CustomAppConfig {
2023-09-24 12:43:14 +02:00
/** お知らせ */
notice?: {
/**
*
*
* ```js
* defineAppConfig({
* notice: {
* title: {
* ja: '〇〇をリリースしました!',
* en: 'We\'ve released !',
* ...
* },
* ...
* }
* });
* ```
*
**/
2023-11-12 05:21:23 +01:00
title: { ja: string; } & Partial<Record<LocaleCodes, string>>;
2023-09-24 12:43:14 +02:00
/**
*
*
*
* **`/ja/`**
* : `/ja/docs/releases/` `/docs/releases/`
**/
to: string;
}
}
}
2023-12-20 11:39:08 +01:00
declare module 'vue-i18n' {
interface ComposerCustomProperties {
// 厳格に定義し直す
locales: ComputedRef<LocaleObject[]>
}
}