File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
packages/element-web-module-api Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,10 @@ export interface ExtrasApi {
174174
175175// @public
176176export interface I18nApi {
177- humanizeTime(timeMillis : number ): string ;
177+ humanizeTime(this : void , timeMillis : number ): string ;
178178 get language(): string ;
179- register(translations : Partial <Translations >): void ;
180- translate(key : keyof Translations , variables ? : Variables ): string ;
179+ register(this : void , translations : Partial <Translations >): void ;
180+ translate(this : void , key : keyof Translations , variables ? : Variables ): string ;
181181}
182182
183183// @alpha @deprecated (undocumented)
@@ -445,3 +445,4 @@ export interface WidgetVariablesCustomisations {
445445// (No @packageDocumentation comment for this package)
446446
447447```
448+
Original file line number Diff line number Diff line change 11{
22 "name" : " @element-hq/element-web-module-api" ,
33 "type" : " module" ,
4- "version" : " 1.9.0 " ,
4+ "version" : " 1.9.1 " ,
55 "description" : " Module API surface for element-web" ,
66 "repository" : {
77 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -41,19 +41,19 @@ export interface I18nApi {
4141 /**
4242 * Register translations for the module, may override app's existing translations
4343 */
44- register ( translations : Partial < Translations > ) : void ;
44+ register ( this : void , translations : Partial < Translations > ) : void ;
4545
4646 /**
4747 * Perform a translation, with optional variables
4848 * @param key - The key to translate
4949 * @param variables - Optional variables to interpolate into the translation
5050 */
51- translate ( key : keyof Translations , variables ?: Variables ) : string ;
51+ translate ( this : void , key : keyof Translations , variables ?: Variables ) : string ;
5252
5353 /**
5454 * Convert a timestamp into a translated, human-readable time,
5555 * using the current system time as a reference, eg. "5 minutes ago".
5656 * @param timeMillis - The time in milliseconds since epoch
5757 */
58- humanizeTime ( timeMillis : number ) : string ;
58+ humanizeTime ( this : void , timeMillis : number ) : string ;
5959}
You can’t perform that action at this time.
0 commit comments