mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 11:51:36 +02:00
Better doc
This commit is contained in:
parent
56662c53e9
commit
65edff067a
@ -51,7 +51,8 @@ export interface I18nApi {
|
||||
translate(key: keyof Translations, variables?: Variables): string;
|
||||
|
||||
/**
|
||||
* Convert a timestamp into a human-readable time string
|
||||
* Convert a timestamp into a translated, human-readable time,
|
||||
* using the current system time as a reference, eg. "5 minutes ago".
|
||||
* @param timeMillis - The time in milliseconds since epoch
|
||||
*/
|
||||
humanizeTime(timeMillis: number): string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user