-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d4a21d
commit b66b869
Showing
6 changed files
with
89 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,54 @@ | ||
export { types as DefaultTypes } from "replugged"; | ||
import { types as DefaultTypes } from "replugged"; | ||
export { Channel } from "discord-types/general"; | ||
export { Tree } from "replugged/dist/renderer/util"; | ||
export interface ChannelButtonClasses { | ||
channelEmoji: string; | ||
channelEmojiLeftOfIcon: string; | ||
channelEmojiRightOfIcon: string; | ||
children: string; | ||
emojiColorFill: string; | ||
favoritesSuggestion: string; | ||
icon: string; | ||
iconContainer: string; | ||
link: string; | ||
linkBottom: string; | ||
linkTop: string; | ||
linkWithChannelEmoji: string; | ||
modeConnected: string; | ||
modeLocked: string; | ||
modeMuted: string; | ||
modeSelected: string; | ||
modeUnread: string; | ||
name: string; | ||
newBadge: string; | ||
notInteractive: string; | ||
numberBadge: string; | ||
responsiveWidthMobile: string; | ||
ripple: string; | ||
subtitle: string; | ||
topContent: string; | ||
twemoji: string; | ||
typeThread: string; | ||
unread: string; | ||
unreadRelevant: string; | ||
wrapper: string; | ||
import { types } from "replugged"; | ||
import type util from "replugged/util"; | ||
|
||
export namespace Types { | ||
export import DefaultTypes = types; | ||
export type Tree = util.Tree; | ||
export type GenericModule = Record<string, DefaultTypes.AnyFunction> & { | ||
default: DefaultTypes.AnyFunction; | ||
}; | ||
export interface GenericExport { | ||
exports?: GenericModule; | ||
id: string; | ||
loaded: boolean; | ||
} | ||
export interface ChannelButtonClasses { | ||
channelEmoji: string; | ||
channelEmojiLeftOfIcon: string; | ||
channelEmojiRightOfIcon: string; | ||
children: string; | ||
emojiColorFill: string; | ||
favoritesSuggestion: string; | ||
icon: string; | ||
iconContainer: string; | ||
link: string; | ||
linkBottom: string; | ||
linkTop: string; | ||
linkWithChannelEmoji: string; | ||
modeConnected: string; | ||
modeLocked: string; | ||
modeMuted: string; | ||
modeSelected: string; | ||
modeUnread: string; | ||
name: string; | ||
newBadge: string; | ||
notInteractive: string; | ||
numberBadge: string; | ||
responsiveWidthMobile: string; | ||
ripple: string; | ||
subtitle: string; | ||
topContent: string; | ||
twemoji: string; | ||
typeThread: string; | ||
unread: string; | ||
unreadRelevant: string; | ||
wrapper: string; | ||
} | ||
export interface Modules { | ||
loadModules?: () => Promise<void>; | ||
ChannelButtonClasses?: ChannelButtonClasses; | ||
ChannelItem?: GenericModule; | ||
Interactive?: GenericModule; | ||
} | ||
} | ||
export interface ChannelItem { | ||
default: DefaultTypes.AnyFunction; | ||
ChannelItemIcon: DefaultTypes.AnyFunction; | ||
} | ||
export interface Interactive { | ||
Icon: DefaultTypes.AnyFunction; | ||
default: { Icon: DefaultTypes.AnyFunction } & DefaultTypes.AnyFunction; | ||
} | ||
export interface Modules { | ||
loadModules?: () => Promise<void>; | ||
ChannelItem?: ChannelItem; | ||
ChannelButtonClasses?: ChannelButtonClasses; | ||
Interactive?: Interactive; | ||
} | ||
export * as default from "./types"; | ||
export default Types; |