Skip to content

Commit

Permalink
fix(FileServer): update typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Dec 11, 2024
1 parent e6d1600 commit 2da153b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/FileServer.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { EventEmitter } from '../event'
import { FileProvider } from '../files'

export type FileServerEventMap = unknown
export type FileServerEventMap = {[k: string]: object|null|undefined}

export abstract class FileServer<EventMap extends FileServerEventMap = FileServerEventMap> {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Latest Typescript versions report an error for declaration mismatch on the protected properties
export abstract class FileServer<EventMap extends FileServerEventMap = any> {
constructor(
public provider: FileProvider,
) {
Expand Down

0 comments on commit 2da153b

Please sign in to comment.