server-ts: Port share/shaca/shaca

This commit is contained in:
Elian Doran
2024-04-09 22:39:43 +03:00
parent 0865e90cae
commit b3c2602620
7 changed files with 43 additions and 39 deletions

View File

@@ -1,10 +1,11 @@
let shaca: any;
import Shaca from "../shaca-interface";
let shaca: Shaca;
class AbstractShacaEntity {
// FIXME: Use right data type once we convert Shaca as well.
get shaca(): any {
get shaca(): Shaca {
if (!shaca) {
shaca = require('../shaca.js');
shaca = require('../shaca');
}
return shaca;