mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-25 09:20:34 +01:00
💻 | Working so hard on the design review
This commit is contained in:
11
@types/index.d.ts
vendored
11
@types/index.d.ts
vendored
@@ -1,28 +1,33 @@
|
||||
import { NuxtAxiosInstance } from '@nuxtjs/axios'
|
||||
import VueI18n, {IVueI18n} from "vue-i18n";
|
||||
import {ColorModeInstance} from "@nuxtjs/color-mode/types/color-mode";
|
||||
import {NuxtApp} from "@nuxt/types/app";
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
|
||||
interface Vue {
|
||||
$axios: NuxtAxiosInstance,
|
||||
i18n: VueI18n & IVueI18n
|
||||
}
|
||||
}
|
||||
declare module '@nuxt/types' {
|
||||
|
||||
interface NuxtAppOptions {
|
||||
$axios: NuxtAxiosInstance,
|
||||
i18n: VueI18n & IVueI18n
|
||||
}
|
||||
|
||||
interface Context {
|
||||
$axios: NuxtAxiosInstance,
|
||||
$i18n: VueI18n & IVueI18n
|
||||
$colorMode: ColorModeInstance
|
||||
i18n: VueI18n & IVueI18n
|
||||
$colorMode: ColorModeInstance,
|
||||
$app: NuxtApp
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vuex/types/index' {
|
||||
interface Store<S> {
|
||||
$axios: NuxtAxiosInstance
|
||||
$axios: NuxtAxiosInstance,
|
||||
i18n: VueI18n & IVueI18n
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,5 +36,28 @@ interface Formation {
|
||||
end_date: string
|
||||
}
|
||||
|
||||
interface Tag {
|
||||
slug: string
|
||||
}
|
||||
|
||||
export { FormData, InfoData, Skill, Experience, Formation }
|
||||
interface Post {
|
||||
slug: string,
|
||||
title: string,
|
||||
description: string,
|
||||
reading_time: number,
|
||||
tags: Array<Tag>,
|
||||
cover: string,
|
||||
date: string
|
||||
}
|
||||
|
||||
interface Project {
|
||||
slug: string,
|
||||
title: string,
|
||||
description: string,
|
||||
url: string,
|
||||
cover: string,
|
||||
color: string,
|
||||
skills: Array<Skill>
|
||||
}
|
||||
|
||||
export { FormData, InfoData, Skill, Experience, Formation, Post, Tag, Project }
|
||||
|
||||
Reference in New Issue
Block a user