jointrashposs/types/misc.d.ts

55 lines
1.5 KiB
TypeScript
Raw Normal View History

2023-11-12 05:21:23 +01:00
import type { LocaleCodes } from './../nuxt.config';
2023-12-20 11:39:08 +01:00
import type { ComputedRef } from 'vue-demi'
2023-11-12 05:21:23 +01:00
2023-07-08 10:36:02 +02:00
declare module '*.svg' {
import { FunctionalComponent, SVGAttributes } from 'vue'
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[]>
}
}
2023-09-24 12:43:14 +02:00
export { };