forked from mystiq/hydrogen-web
Add type annotation for ctor
This commit is contained in:
parent
3ee1607298
commit
286747c23c
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export class IDBLogger extends BaseLogger {
|
|||
private _queuedItems: QueuedItem[];
|
||||
|
||||
// todo: type constructor
|
||||
constructor(options) {
|
||||
constructor(options: {name: string, flushInterval?: number, limit?: number, platform: Platform}) {
|
||||
super(options);
|
||||
const {name, flushInterval = 60 * 1000, limit = 3000} = options;
|
||||
this._name = name;
|
||||
|
|
Loading…
Reference in a new issue