wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/data-bridge/src/definitions/data-access/MessagesRepository.ts

Summary

Maintainability
A
0 mins
Test Coverage
export default interface MessagesRepository {
    /**
     * @returns HTML
     * Any bad tags in the message source are escaped.
     */
    get( messageKey: string, ...params: readonly ( string| HTMLElement )[] ): string;

    /**
     * @returns plain text
     * HTML-significant characters in the message source are not escaped, and the result must not be used as HTML.
     */
    getText( messageKey: string, ...params: readonly string[] ): string;
}