simplify typing
This commit is contained in:
@@ -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>;
|
||||||
|
|||||||
Reference in New Issue
Block a user