mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Add type annotation for ctor
This commit is contained in:
parent
3ee1607298
commit
286747c23c
@ -41,7 +41,7 @@ export class IDBLogger extends BaseLogger {
|
|||||||
private _queuedItems: QueuedItem[];
|
private _queuedItems: QueuedItem[];
|
||||||
|
|
||||||
// todo: type constructor
|
// todo: type constructor
|
||||||
constructor(options) {
|
constructor(options: {name: string, flushInterval?: number, limit?: number, platform: Platform}) {
|
||||||
super(options);
|
super(options);
|
||||||
const {name, flushInterval = 60 * 1000, limit = 3000} = options;
|
const {name, flushInterval = 60 * 1000, limit = 3000} = options;
|
||||||
this._name = name;
|
this._name = name;
|
||||||
|
Loading…
Reference in New Issue
Block a user