refactor(typing): make all fav/sub/hidden request interface fields optional

This commit is contained in:
parent 722368c707
commit 9d4af2b256
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -1,26 +1,26 @@
interface SubBody {
stories: number[];
authors: number[];
bands: number[];
stories?: number[];
authors?: number[];
bands?: number[];
}
interface FavBody {
stories: number[];
authors: number[];
stories?: number[];
authors?: number[];
}
interface HideBody {
authors: number[];
bands: number[];
authors?: number[];
bands?: number[];
}
export interface SubPayload {
push: SubBody;
pull: SubBody;
push?: SubBody;
pull?: SubBody;
}
export interface FavPayload {
push: FavBody;
pull: FavBody;
push?: FavBody;
pull?: FavBody;
}
export interface HidePayload {
push: HideBody;
pull: HideBody;
push?: HideBody;
pull?: HideBody;
}