refactor(types): map actor type with apiactor from schema

This commit is contained in:
ArneBo 2025-02-17 11:15:53 +01:00
parent 387651e5fa
commit 6b47163b14
1 changed files with 12 additions and 12 deletions

View File

@ -47,7 +47,7 @@ export type ContentCategory = 'podcast' | 'music'
// Use backend-defined schema types
export type APIActor = components['schemas']['APIActor']
export type Actor = components['schemas']['APIActor']
export type Activity = components['schemas']['Activity']
export type Album = components['schemas']['Album']
export type ArtistCredit = components['schemas']['ArtistCredit']
@ -168,17 +168,17 @@ export interface Upload {
}
// Profile stuff
export interface Actor {
id: number
fid?: string
name?: string
icon?: Cover
summary: string
preferred_username: string
full_username: string
is_local: boolean
domain: string
}
// export interface Actor {
// id: number
// fid?: string
// name?: string
// icon?: Cover
// summary: string
// preferred_username: string
// full_username: string
// is_local: boolean
// domain: string
// }
export interface User {
id: number