1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-24 23:26:50 +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

@ -1,13 +1,13 @@
import { utils, CommandRuntime, CommandDeclaration } from '../services/CommandService';
import { _ } from '../locale';
export const declaration:CommandDeclaration = {
export const declaration: CommandDeclaration = {
name: 'historyBackward',
label: () => _('Back'),
iconName: 'icon-back',
};
export const runtime = ():CommandRuntime => {
export const runtime = (): CommandRuntime => {
return {
execute: async () => {
utils.store.dispatch({

View File

@ -1,13 +1,13 @@
import { utils, CommandRuntime, CommandDeclaration } from '../services/CommandService';
import { _ } from '../locale';
export const declaration:CommandDeclaration = {
export const declaration: CommandDeclaration = {
name: 'historyForward',
label: () => _('Forward'),
iconName: 'icon-forward',
};
export const runtime = ():CommandRuntime => {
export const runtime = (): CommandRuntime => {
return {
execute: async () => {
utils.store.dispatch({

View File

@ -2,7 +2,7 @@ import { utils, CommandRuntime, CommandDeclaration, CommandContext } from '../se
import { _ } from '../locale';
const { reg } = require('../registry.js');
export const declaration:CommandDeclaration = {
export const declaration: CommandDeclaration = {
name: 'synchronize',
label: () => _('Synchronise'),
iconName: 'fa-sync-alt',
@ -10,9 +10,9 @@ export const declaration:CommandDeclaration = {
// Note that this command actually acts as a toggle - it starts or cancels
// synchronisation depending on the "syncStarted" parameter
export const runtime = ():CommandRuntime => {
export const runtime = (): CommandRuntime => {
return {
execute: async (context:CommandContext, syncStarted:boolean = null) => {
execute: async (context: CommandContext, syncStarted: boolean = null) => {
syncStarted = syncStarted === null ? context.state.syncStarted : syncStarted;
const action = syncStarted ? 'cancel' : 'start';