1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Tools: Apply rule @typescript-eslint/member-delimiter-style

This commit is contained in:
Laurent Cozic
2020-11-12 19:29:22 +00:00
parent 42799b0662
commit 17d835d694
103 changed files with 964 additions and 953 deletions

View File

@@ -2,11 +2,11 @@ const BaseModel = require('../BaseModel').default;
const Note = require('./Note.js');
export interface Notification {
id: number,
noteId: string,
date: Date,
title: string,
body?: string,
id: number;
noteId: string;
date: Date;
title: string;
body?: string;
}
export default class Alarm extends BaseModel {

View File

@@ -19,54 +19,54 @@ export enum SettingItemType {
}
interface KeysOptions {
secureOnly?: boolean,
secureOnly?: boolean;
}
// This is the definition of a setting item
export interface SettingItem {
value: any,
type: SettingItemType,
public: boolean,
value: any;
type: SettingItemType;
public: boolean;
subType?: string,
key?: string,
isEnum?: boolean,
section?: string,
label?(): string,
description?(appType: string): string,
options?(): any,
appTypes?: string[],
show?(settings: any): boolean,
filter?(value: any): any,
secure?: boolean,
advanced?: boolean,
minimum?: number,
maximum?: number,
step?: number,
onClick?(): void,
unitLabel?(value: any): string,
subType?: string;
key?: string;
isEnum?: boolean;
section?: string;
label?(): string;
description?(appType: string): string;
options?(): any;
appTypes?: string[];
show?(settings: any): boolean;
filter?(value: any): any;
secure?: boolean;
advanced?: boolean;
minimum?: number;
maximum?: number;
step?: number;
onClick?(): void;
unitLabel?(value: any): string;
}
interface SettingItems {
[key: string]: SettingItem,
[key: string]: SettingItem;
}
// This is where the actual setting values are stored.
// They are saved to database at regular intervals.
interface CacheItem {
key: string,
value: any,
key: string;
value: any;
}
export interface SettingSection {
label: string,
iconName?: string,
description?: string,
name?: string,
label: string;
iconName?: string;
description?: string;
name?: string;
}
interface SettingSections {
[key: string]: SettingSection,
[key: string]: SettingSection;
}
class Setting extends BaseModel {

View File

@@ -2,14 +2,14 @@ import paginationToSql from './paginationToSql';
import { Pagination, PaginationOrder } from './types';
export interface ModelFeedPage {
items: any[],
has_more?: boolean,
total?: number,
items: any[];
has_more?: boolean;
total?: number;
}
export interface WhereQuery {
sql: string,
params: any[],
sql: string;
params: any[];
}
// Note: this method might return more fields than was requested as it will

View File

@@ -4,13 +4,13 @@ export enum PaginationOrderDir {
}
export interface PaginationOrder {
by: string,
dir: PaginationOrderDir,
caseInsensitive: boolean,
by: string;
dir: PaginationOrderDir;
caseInsensitive: boolean;
}
export interface Pagination {
limit: number,
order: PaginationOrder[],
page: number,
limit: number;
order: PaginationOrder[];
page: number;
}