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";
const sql = require('../services/sql');
const NoteSet = require('../services/search/note_set.js');
const NotFoundError = require('../errors/not_found_error.js');
import sql = require('../services/sql');
import NoteSet = require('../services/search/note_set');
import NotFoundError = require('../errors/not_found_error');
/**
* Becca is a backend cache of all notes, branches, and attributes.
@ -277,6 +275,4 @@ class Becca {
}
}
const becca = new Becca();
module.exports = becca;
export = 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;