You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/server/plugins/com.msgbyte.excalidraw/services/excalidraw.service.dev.ts

23 lines
548 B
TypeScript

import { TcService, TcDbService } from 'tailchat-server-sdk';
import type { ExcalidrawDocument, ExcalidrawModel } from '../models/excalidraw';
/**
* Excalidraw
*
* Add excalidraw support in Tailchat
*/
interface ExcalidrawService
extends TcService,
TcDbService<ExcalidrawDocument, ExcalidrawModel> {}
class ExcalidrawService extends TcService {
get serviceName() {
return 'plugin:com.msgbyte.excalidraw';
}
onInit() {
this.registerLocalDb(require('../models/excalidraw').default);
}
}
export default ExcalidrawService;