1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 11:24:30 +02:00

Bundled output for commit cab2e797eb

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

[skip ci]
This commit is contained in:
flarum-bot
2021-11-11 20:05:26 +00:00
parent cab2e797eb
commit 5f110f73e7
47 changed files with 304 additions and 116 deletions

View File

@@ -8,7 +8,7 @@ declare namespace _default {
* @return {ItemList}
* @public
*/
function controls(discussion: any, context: any): ItemList;
function controls(discussion: any, context: any): ItemList<any>;
/**
* Get a list of controls for a discussion.
*
@@ -18,7 +18,7 @@ declare namespace _default {
* @return {ItemList}
* @public
*/
function controls(discussion: any, context: any): ItemList;
function controls(discussion: any, context: any): ItemList<any>;
/**
* Get controls for a discussion pertaining to the current user (e.g. reply,
* follow).
@@ -29,7 +29,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function userControls(discussion: any, context: any): ItemList;
function userControls(discussion: any, context: any): ItemList<any>;
/**
* Get controls for a discussion pertaining to the current user (e.g. reply,
* follow).
@@ -40,7 +40,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function userControls(discussion: any, context: any): ItemList;
function userControls(discussion: any, context: any): ItemList<any>;
/**
* Get controls for a discussion pertaining to moderation (e.g. rename, lock).
*
@@ -50,7 +50,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function moderationControls(discussion: any): ItemList;
function moderationControls(discussion: any): ItemList<any>;
/**
* Get controls for a discussion pertaining to moderation (e.g. rename, lock).
*
@@ -60,7 +60,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function moderationControls(discussion: any): ItemList;
function moderationControls(discussion: any): ItemList<any>;
/**
* Get controls for a discussion which are destructive (e.g. delete).
*
@@ -70,7 +70,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function destructiveControls(discussion: any): ItemList;
function destructiveControls(discussion: any): ItemList<any>;
/**
* Get controls for a discussion which are destructive (e.g. delete).
*
@@ -80,7 +80,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function destructiveControls(discussion: any): ItemList;
function destructiveControls(discussion: any): ItemList<any>;
/**
* Open the reply composer for the discussion. A promise will be returned,
* which resolves when the composer opens successfully. If the user is not

View File

@@ -8,7 +8,7 @@ declare namespace _default {
* @return {ItemList}
* @public
*/
function controls(post: any, context: any): ItemList;
function controls(post: any, context: any): ItemList<any>;
/**
* Get a list of controls for a post.
*
@@ -18,7 +18,7 @@ declare namespace _default {
* @return {ItemList}
* @public
*/
function controls(post: any, context: any): ItemList;
function controls(post: any, context: any): ItemList<any>;
/**
* Get controls for a post pertaining to the current user (e.g. report).
*
@@ -28,7 +28,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function userControls(post: any, context: any): ItemList;
function userControls(post: any, context: any): ItemList<any>;
/**
* Get controls for a post pertaining to the current user (e.g. report).
*
@@ -38,7 +38,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function userControls(post: any, context: any): ItemList;
function userControls(post: any, context: any): ItemList<any>;
/**
* Get controls for a post pertaining to moderation (e.g. edit).
*
@@ -48,7 +48,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function moderationControls(post: any, context: any): ItemList;
function moderationControls(post: any, context: any): ItemList<any>;
/**
* Get controls for a post pertaining to moderation (e.g. edit).
*
@@ -58,7 +58,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function moderationControls(post: any, context: any): ItemList;
function moderationControls(post: any, context: any): ItemList<any>;
/**
* Get controls for a post that are destructive (e.g. delete).
*
@@ -68,7 +68,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function destructiveControls(post: any, context: any): ItemList;
function destructiveControls(post: any, context: any): ItemList<any>;
/**
* Get controls for a post that are destructive (e.g. delete).
*
@@ -78,7 +78,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function destructiveControls(post: any, context: any): ItemList;
function destructiveControls(post: any, context: any): ItemList<any>;
/**
* Open the composer to edit a post.
*

View File

@@ -8,7 +8,7 @@ declare namespace _default {
* @return {ItemList}
* @public
*/
function controls(user: any, context: any): ItemList;
function controls(user: any, context: any): ItemList<any>;
/**
* Get a list of controls for a user.
*
@@ -18,7 +18,7 @@ declare namespace _default {
* @return {ItemList}
* @public
*/
function controls(user: any, context: any): ItemList;
function controls(user: any, context: any): ItemList<any>;
/**
* Get controls for a user pertaining to the current user (e.g. poke, follow).
*
@@ -28,7 +28,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function userControls(): ItemList;
function userControls(): ItemList<any>;
/**
* Get controls for a user pertaining to the current user (e.g. poke, follow).
*
@@ -38,7 +38,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function userControls(): ItemList;
function userControls(): ItemList<any>;
/**
* Get controls for a user pertaining to moderation (e.g. suspend, edit).
*
@@ -48,7 +48,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function moderationControls(user: any): ItemList;
function moderationControls(user: any): ItemList<any>;
/**
* Get controls for a user pertaining to moderation (e.g. suspend, edit).
*
@@ -58,7 +58,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function moderationControls(user: any): ItemList;
function moderationControls(user: any): ItemList<any>;
/**
* Get controls for a user which are destructive (e.g. delete).
*
@@ -68,7 +68,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function destructiveControls(user: any): ItemList;
function destructiveControls(user: any): ItemList<any>;
/**
* Get controls for a user which are destructive (e.g. delete).
*
@@ -78,7 +78,7 @@ declare namespace _default {
* @return {ItemList}
* @protected
*/
function destructiveControls(user: any): ItemList;
function destructiveControls(user: any): ItemList<any>;
/**
* Delete the user.
*