UNPKG
@firesystem/core
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
0.2.0
Virtual File System core interfaces and types
@firesystem/core
/
src
/
interfaces
/
IWatchable.ts
11 lines
(9 loc)
•
291 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
type
{
FSEvent
}
from
"../types/Events"
;
import
type
{
Disposable
}
from
"../types/Common"
;
/** * Interface for watchable file systems */
export
interface
IWatchable
{
watch
(
pattern
:
string
,
callback
:
(
event
:
FSEvent
) =>
void
):
Disposable
;
unwatch
(
handle
:
Disposable
):
void
; }