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