You've already forked joplin
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:
@ -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({
|
||||
|
@ -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({
|
||||
|
@ -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';
|
||||
|
Reference in New Issue
Block a user