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

@ -40,14 +40,14 @@ import { Path } from './types';
export default class JoplinData {
private api_: any = new Api();
private pathSegmentRegex_:RegExp;
private pathSegmentRegex_: RegExp;
private serializeApiBody(body: any) {
if (typeof body !== 'string') { return JSON.stringify(body); }
return body;
}
private pathToString(path:Path):string {
private pathToString(path: Path): string {
if (!this.pathSegmentRegex_) {
this.pathSegmentRegex_ = /^([a-z0-9]+)$/;
}