Bundled output for commit 71cb8c378ff0f40ff0c1ea30710d7634a963293e

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

[skip ci]
This commit is contained in:
flarum-bot
2021-11-26 22:30:49 +00:00
parent 71cb8c378f
commit 38c3ccd6be
3 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,4 @@
/// <reference path="../../../src/common/translator-icu-rich.d.ts" />
import Modal from '../../common/components/Modal'; import Modal from '../../common/components/Modal';
export default class LoadingModal<ModalAttrs = {}> extends Modal<ModalAttrs> { export default class LoadingModal<ModalAttrs = {}> extends Modal<ModalAttrs> {
/** /**
@ -5,7 +6,7 @@ export default class LoadingModal<ModalAttrs = {}> extends Modal<ModalAttrs> {
*/ */
static readonly isDismissible: boolean; static readonly isDismissible: boolean;
className(): string; className(): string;
title(): any; title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
content(): string; content(): string;
onsubmit(e: Event): void; onsubmit(e: Event): void;
} }

View File

@ -1,3 +1,4 @@
/// <reference path="../../../src/common/translator-icu-rich.d.ts" />
/// <reference types="mithril" /> /// <reference types="mithril" />
import type User from '../../common/models/User'; import type User from '../../common/models/User';
import ItemList from '../../common/utils/ItemList'; import ItemList from '../../common/utils/ItemList';
@ -65,8 +66,8 @@ export default class UserListPage extends AdminPage {
headerInfo(): { headerInfo(): {
className: string; className: string;
icon: string; icon: string;
title: any; title: import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
description: any; description: import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
}; };
/** /**
* Asynchronously fetch the next set of users to be rendered. * Asynchronously fetch the next set of users to be rendered.

View File

@ -1,3 +1,6 @@
/// <reference path="../../src/common/translator-icu-rich.d.ts" />
import { RichMessageFormatter } from '@askvortsov/rich-icu-message-formatter';
import { pluralTypeHandler, selectTypeHandler } from '@ultraq/icu-message-formatter';
declare type Translations = Record<string, string>; declare type Translations = Record<string, string>;
declare type TranslatorParameters = Record<string, unknown>; declare type TranslatorParameters = Record<string, unknown>;
export default class Translator { export default class Translator {
@ -8,15 +11,15 @@ export default class Translator {
/** /**
* The underlying ICU MessageFormatter util. * The underlying ICU MessageFormatter util.
*/ */
protected formatter: any; protected formatter: RichMessageFormatter;
setLocale(locale: string): void; setLocale(locale: string): void;
addTranslations(translations: Translations): void; addTranslations(translations: Translations): void;
/** /**
* An extensible entrypoint for extenders to register type handlers for translations. * An extensible entrypoint for extenders to register type handlers for translations.
*/ */
protected formatterTypeHandlers(): { protected formatterTypeHandlers(): {
plural: any; plural: typeof pluralTypeHandler;
select: any; select: typeof selectTypeHandler;
}; };
/** /**
* A temporary system to preprocess parameters. * A temporary system to preprocess parameters.
@ -26,6 +29,6 @@ export default class Translator {
* @internal * @internal
*/ */
protected preprocessParameters(parameters: TranslatorParameters): TranslatorParameters; protected preprocessParameters(parameters: TranslatorParameters): TranslatorParameters;
trans(id: string, parameters?: TranslatorParameters): any; trans(id: string, parameters?: TranslatorParameters): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
} }
export {}; export {};