work
This commit is contained in:
parent
09a6a9bf85
commit
e11d651e33
14
src/webpack/common/types/stores.d.ts
vendored
14
src/webpack/common/types/stores.d.ts
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue