refactor(typing): make all fav/sub/hidden request interface fields optional
This commit is contained in:
parent
722368c707
commit
9d4af2b256
@ -1,26 +1,26 @@
|
|||||||
interface SubBody {
|
interface SubBody {
|
||||||
stories: number[];
|
stories?: number[];
|
||||||
authors: number[];
|
authors?: number[];
|
||||||
bands: number[];
|
bands?: number[];
|
||||||
}
|
}
|
||||||
interface FavBody {
|
interface FavBody {
|
||||||
stories: number[];
|
stories?: number[];
|
||||||
authors: number[];
|
authors?: number[];
|
||||||
}
|
}
|
||||||
interface HideBody {
|
interface HideBody {
|
||||||
authors: number[];
|
authors?: number[];
|
||||||
bands: number[];
|
bands?: number[];
|
||||||
}
|
}
|
||||||
export interface SubPayload {
|
export interface SubPayload {
|
||||||
push: SubBody;
|
push?: SubBody;
|
||||||
pull: SubBody;
|
pull?: SubBody;
|
||||||
}
|
}
|
||||||
export interface FavPayload {
|
export interface FavPayload {
|
||||||
push: FavBody;
|
push?: FavBody;
|
||||||
pull: FavBody;
|
pull?: FavBody;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface HidePayload {
|
export interface HidePayload {
|
||||||
push: HideBody;
|
push?: HideBody;
|
||||||
pull: HideBody;
|
pull?: HideBody;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user