This commit is contained in:
Nuckyz 2024-05-11 05:51:18 -03:00
parent 09a6a9bf85
commit e11d651e33
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -184,22 +184,22 @@ export class GuildStore extends FluxStore {
getAllGuildRoles(): Record<string, Record<string, Role>>; getAllGuildRoles(): Record<string, Record<string, Role>>;
} }
export type MessageStore = t.FluxStore & Omit<Stores.MessageStore, "getMessages"> & { export type MessageStore = FluxStore & Omit<Stores.MessageStore, "getMessages"> & {
getMessages(channelId: string): any; getMessages(channelId: string): any;
}; };
export type UserStore = t.FluxStore & Stores.UserStore; export type UserStore = FluxStore & Stores.UserStore;
export type SelectedChannelStore = t.FluxStore & Stores.SelectedChannelStore; export type SelectedChannelStore = FluxStore & Stores.SelectedChannelStore;
export type ChannelStore = t.FluxStore & Stores.ChannelStore; export type ChannelStore = FluxStore & Stores.ChannelStore;
export type GuildMemberStore = t.FluxStore & Stores.GuildMemberStore; export type GuildMemberStore = FluxStore & Stores.GuildMemberStore;
type RelationshipStore = t.FluxStore & Stores.RelationshipStore & { export type RelationshipStore = FluxStore & Stores.RelationshipStore & {
/** Get the date (as a string) that the relationship was created */ /** Get the date (as a string) that the relationship was created */
getSince(userId: string): string; getSince(userId: string): string;
}; };
export type useStateFromStores = <T>( export type useStateFromStores = <T>(
stores: t.FluxStore[], stores: FluxStore[],
mapper: () => T, mapper: () => T,
dependencies?: any[] | null, dependencies?: any[] | null,
isEqual?: (old: T, newer: T) => boolean isEqual?: (old: T, newer: T) => boolean