1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +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

@ -6,12 +6,12 @@ import readonlyProperties from './readonlyProperties';
import requestFields from './requestFields';
const BaseItem = require('../../../models/BaseItem');
export default async function(modelType:number, request:Request, id:string = null, link:string = null) {
export default async function(modelType: number, request: Request, id: string = null, link: string = null) {
if (link) throw new ErrorNotFound(); // Default action doesn't support links at all for now
const ModelClass = BaseItem.getClassByItemType(modelType);
const getOneModel = async (options:any = null) => {
const getOneModel = async (options: any = null) => {
const model = await ModelClass.load(id, options || {});
if (!model) throw new ErrorNotFound();
return model;