refactor(types): map actor type with apiactor from schema
This commit is contained in:
parent
387651e5fa
commit
6b47163b14
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue