1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +02:00

Tools: Apply rule @typescript-eslint/type-annotation-spacing

This commit is contained in:
Laurent Cozic
2020-11-12 19:13:28 +00:00
parent 62feb7ff60
commit d20694e52c
291 changed files with 2205 additions and 2203 deletions

View File

@ -20,19 +20,19 @@ export enum IntervalType {
// Each queue should be associated with a specific entity (a note, resource, etc.)
export default class AsyncActionQueue {
queue_:QueueItem[] = [];
interval_:number;
intervalType_:number;
scheduleProcessingIID_:any = null;
queue_: QueueItem[] = [];
interval_: number;
intervalType_: number;
scheduleProcessingIID_: any = null;
processing_ = false;
needProcessing_ = false;
constructor(interval:number = 100, intervalType:IntervalType = IntervalType.Debounce) {
constructor(interval: number = 100, intervalType: IntervalType = IntervalType.Debounce) {
this.interval_ = interval;
this.intervalType_ = intervalType;
}
push(action:QueueItemAction, context:any = null) {
push(action: QueueItemAction, context: any = null) {
this.queue_.push({
action: action,
context: context,
@ -40,11 +40,11 @@ export default class AsyncActionQueue {
this.scheduleProcessing();
}
get queue():QueueItem[] {
get queue(): QueueItem[] {
return this.queue_;
}
private scheduleProcessing(interval:number = null) {
private scheduleProcessing(interval: number = null) {
if (interval === null) interval = this.interval_;
if (this.scheduleProcessingIID_) {