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
|
// 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 Activity = components['schemas']['Activity']
|
||||||
export type Album = components['schemas']['Album']
|
export type Album = components['schemas']['Album']
|
||||||
export type ArtistCredit = components['schemas']['ArtistCredit']
|
export type ArtistCredit = components['schemas']['ArtistCredit']
|
||||||
|
@ -168,17 +168,17 @@ export interface Upload {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Profile stuff
|
// Profile stuff
|
||||||
export interface Actor {
|
// export interface Actor {
|
||||||
id: number
|
// id: number
|
||||||
fid?: string
|
// fid?: string
|
||||||
name?: string
|
// name?: string
|
||||||
icon?: Cover
|
// icon?: Cover
|
||||||
summary: string
|
// summary: string
|
||||||
preferred_username: string
|
// preferred_username: string
|
||||||
full_username: string
|
// full_username: string
|
||||||
is_local: boolean
|
// is_local: boolean
|
||||||
domain: string
|
// domain: string
|
||||||
}
|
// }
|
||||||
|
|
||||||
export interface User {
|
export interface User {
|
||||||
id: number
|
id: number
|
||||||
|
|
Loading…
Reference in New Issue