Cleanup, TS errors but it compiles and works...
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import type { DocumentStore } from '@/stores/documents'
|
||||
import { useDocumentStore } from '@/stores/documents'
|
||||
import createWebSocket from './WS'
|
||||
|
||||
@@ -68,7 +67,7 @@ export const url_document_upload_ws = '/api/upload'
|
||||
export const url_document_get = '/files'
|
||||
|
||||
export class DocumentHandler {
|
||||
constructor(private store: DocumentStore = useDocumentStore()) {
|
||||
constructor(private store = useDocumentStore()) {
|
||||
this.handleWebSocketMessage = this.handleWebSocketMessage.bind(this)
|
||||
}
|
||||
|
||||
@@ -142,7 +141,7 @@ export class DocumentHandler {
|
||||
}
|
||||
|
||||
export class DocumentUploadHandler {
|
||||
constructor(private store: DocumentStore = useDocumentStore()) {
|
||||
constructor(private store = useDocumentStore()) {
|
||||
this.handleWebSocketMessage = this.handleWebSocketMessage.bind(this)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user