Add type annotation for ctor

This commit is contained in:
RMidhunSuresh 2021-11-16 12:41:03 +05:30
parent 3ee1607298
commit 286747c23c

View File

@ -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;