mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
server-ts: Convert becca.js
This commit is contained in:
parent
3a7d0d1f13
commit
85af0a24ee
@ -1,8 +1,6 @@
|
|||||||
"use strict";
|
import sql = require('../services/sql');
|
||||||
|
import NoteSet = require('../services/search/note_set');
|
||||||
const sql = require('../services/sql');
|
import NotFoundError = require('../errors/not_found_error');
|
||||||
const NoteSet = require('../services/search/note_set.js');
|
|
||||||
const NotFoundError = require('../errors/not_found_error.js');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Becca is a backend cache of all notes, branches, and attributes.
|
* Becca is a backend cache of all notes, branches, and attributes.
|
||||||
@ -277,6 +275,4 @@ class Becca {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const becca = new Becca();
|
export = Becca;
|
||||||
|
|
||||||
module.exports = becca;
|
|
7
src/becca/becca.ts
Normal file
7
src/becca/becca.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
import Becca = require("./becca-interface");
|
||||||
|
|
||||||
|
const becca = new Becca();
|
||||||
|
|
||||||
|
export = becca;
|
Loading…
x
Reference in New Issue
Block a user