1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

Bundled output for commit 294878291c

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot
2023-11-10 22:16:11 +00:00
parent 294878291c
commit 60ffa78531
3 changed files with 10 additions and 10 deletions

View File

@@ -1,15 +1,15 @@
/// <reference types="flarum/@types/translator-icu-rich" />
export default class FlagPostModal {
export default class FlagPostModal extends FormModal<import("flarum/common/components/FormModal").IFormModalAttrs, undefined> {
constructor();
oninit(vnode: any): void;
success: boolean | undefined;
reason: Stream<string> | undefined;
reasonDetail: Stream<string> | undefined;
className(): string;
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
content(): JSX.Element;
flagReasons(): ItemList<any>;
onsubmit(e: any): void;
loading: boolean | undefined;
}
import FormModal from "flarum/common/components/FormModal";
import Stream from "flarum/common/utils/Stream";
import ItemList from "flarum/common/utils/ItemList";

View File

@@ -57,7 +57,7 @@ export default class TagSelectionModal<CustomAttrs extends ITagSelectionModalAtt
static initAttrs(attrs: ITagSelectionModalAttrs): void;
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
className(): string;
title(): any;
title(): string | undefined;
content(): JSX.Element | JSX.Element[];
/**
* Filters the available tags on every state change.
@@ -93,8 +93,8 @@ export default class TagSelectionModal<CustomAttrs extends ITagSelectionModalAtt
*/
onsubmit(e: SubmitEvent): void;
protected select(e: KeyboardEvent): void;
protected selectableItems(): any;
protected getCurrentNumericIndex(): any;
protected getItem(selectedTag: Tag): any;
protected selectableItems(): JQuery<HTMLElement>;
protected getCurrentNumericIndex(): number;
protected getItem(selectedTag: Tag): JQuery<HTMLElement>;
protected setIndex(index: number, scrollToItem: boolean): void;
}

View File

@@ -48,13 +48,13 @@ declare const ImageUploadSettingType: "image-upload";
* Valid options for the setting component builder to generate a Switch.
*/
export interface SwitchSettingComponentOptions extends CommonSettingsItemOptions {
type: typeof BooleanSettingTypes[number];
type: (typeof BooleanSettingTypes)[number];
}
/**
* Valid options for the setting component builder to generate a Select dropdown.
*/
export interface SelectSettingComponentOptions extends CommonSettingsItemOptions {
type: typeof SelectSettingTypes[number];
type: (typeof SelectSettingTypes)[number];
/**
* Map of values to their labels
*/
@@ -67,7 +67,7 @@ export interface SelectSettingComponentOptions extends CommonSettingsItemOptions
* Valid options for the setting component builder to generate a Textarea.
*/
export interface TextareaSettingComponentOptions extends CommonSettingsItemOptions {
type: typeof TextareaSettingTypes[number];
type: (typeof TextareaSettingTypes)[number];
}
/**
* Valid options for the setting component builder to generate a ColorPreviewInput.