1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00
Files
php-flarum/js/dist-typings/forum/components/EventPost.d.ts
flarum-bot 3d62a6af27 Bundled output for commit d268894e61
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-12-27 19:02:33 +00:00

40 lines
1.0 KiB
TypeScript

/**
* The `EventPost` component displays a post which indicating a discussion
* event, like a discussion being renamed or stickied. Subclasses must implement
* the `icon` and `description` methods.
*
* ### Attrs
*
* - All of the attrs for `Post`
*
* @abstract
*/
export default class EventPost extends Post {
/**
* Get the name of the event icon.
*
* @return {string}
*/
icon(): string;
/**
* Get the description text for the event.
*
* @param {Record<string, unknown>} data
* @return {import('mithril').Children} The description to render in the DOM
*/
description(data: Record<string, unknown>): import('mithril').Children;
/**
* Get the translation key for the description of the event.
*
* @return {string}
*/
descriptionKey(): string;
/**
* Get the translation data for the description of the event.
*
* @return {Record<string, unknown>}
*/
descriptionData(): Record<string, unknown>;
}
import Post from "./Post";