UNPKG
@motorcycle/types
Version:
latest (3.0.0)
3.0.0
2.1.0
2.0.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
A shared-kernel of types for Motorcycle
github.com/motorcyclets/motorcycle
motorcyclets/motorcycle
@motorcycle/types
/
lib.es2015
/
Sink.d.ts
13 lines
(12 loc)
•
278 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
*
Motorcycle Sink type. Used to propagate events.
*
@name Sink
<
A
>
*
@example
*
export interface Sink
<
A
>
{
*
event(time: Time, value: A): void;
*
end(time: Time): void;
*
error(time: Time, err: Error): void;
*
}
*
@type
*/ export { Sink } from '@most/types';