simplify typing

This commit is contained in:
mertalev
2024-02-29 20:23:02 -05:00
parent fb510e6153
commit 1ea61f0573
@@ -3,12 +3,7 @@ import { WatchOptions } from 'chokidar';
interface MockWatcherOptions { interface MockWatcherOptions {
items?: Array<{ items?: Array<{
event: event: StorageEventType;
| StorageEventType.READY
| StorageEventType.ADD
| StorageEventType.CHANGE
| StorageEventType.UNLINK
| StorageEventType.ERROR;
value: string; value: string;
}>; }>;
close?: () => Promise<void>; close?: () => Promise<void>;