mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-29 18:50:26 +01:00
Working on arthome
This commit is contained in:
26
types/auth.d.ts
vendored
26
types/auth.d.ts
vendored
@@ -1,13 +1,35 @@
|
||||
// auth.d.ts
|
||||
import type { Subscription } from '~~/types/types'
|
||||
|
||||
declare module '#auth-utils' {
|
||||
interface User {
|
||||
email: string
|
||||
id: number
|
||||
name: string
|
||||
username: string
|
||||
email: string
|
||||
avatar: string | null
|
||||
githubId?: number | null
|
||||
googleId?: string | null
|
||||
description: string
|
||||
private: boolean
|
||||
language: string
|
||||
location: string
|
||||
subscription: Subscription
|
||||
}
|
||||
|
||||
interface UserSession {
|
||||
email: string
|
||||
id: number
|
||||
name: string
|
||||
username: string
|
||||
email: string
|
||||
avatar: string | null
|
||||
githubId?: number | null
|
||||
googleId?: string | null
|
||||
description: string
|
||||
private: boolean
|
||||
language: string
|
||||
location: string
|
||||
subscription: Subscription
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import type { ParsedContent } from '@nuxt/content'
|
||||
|
||||
export const Subscription = ['free', 'paid'] as const
|
||||
|
||||
// todo: delete
|
||||
export interface AppType extends ParsedContent {
|
||||
primary?: boolean
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user