feat(lib/discord/types): type additional parameters for AlertActionCreators.openAlert
This commit is contained in:
parent
4247a75567
commit
2172bc862b
1 changed files with 6 additions and 2 deletions
|
|
@ -152,10 +152,14 @@ export namespace DiscordModules {
|
||||||
verboseDangerously(...args: unknown[]): void
|
verboseDangerously(...args: unknown[]): void
|
||||||
verbose(...args: unknown[]): void
|
verbose(...args: unknown[]): void
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace Actions {
|
export namespace Actions {
|
||||||
export interface AlertActionCreators {
|
export interface AlertActionCreators {
|
||||||
openAlert(key: string, alert: ReactElement): void
|
openAlert(
|
||||||
|
key: string,
|
||||||
|
alert: ReactElement,
|
||||||
|
onDismiss?: () => unknown,
|
||||||
|
options?: { dismissable?: boolean },
|
||||||
|
): void
|
||||||
dismissAlert(key: string): void
|
dismissAlert(key: string): void
|
||||||
dismissAlerts(): void
|
dismissAlerts(): void
|
||||||
// TODO
|
// TODO
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue