server-ts: Convert becca.js

This commit is contained in:
Elian Doran 2024-02-16 23:51:56 +02:00
parent 3a7d0d1f13
commit 85af0a24ee
No known key found for this signature in database
2 changed files with 11 additions and 8 deletions

View File

@ -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
View File

@ -0,0 +1,7 @@
"use strict";
import Becca = require("./becca-interface");
const becca = new Becca();
export = becca;