mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
server-ts: Port share/shaca/abstract_shaca_entity
This commit is contained in:
14
src/share/shaca/entities/abstract_shaca_entity.ts
Normal file
14
src/share/shaca/entities/abstract_shaca_entity.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
let shaca: any;
|
||||
|
||||
class AbstractShacaEntity {
|
||||
// FIXME: Use right data type once we convert Shaca as well.
|
||||
get shaca(): any {
|
||||
if (!shaca) {
|
||||
shaca = require('../shaca.js');
|
||||
}
|
||||
|
||||
return shaca;
|
||||
}
|
||||
}
|
||||
|
||||
export = AbstractShacaEntity;
|
||||
Reference in New Issue
Block a user