5 lines
113 B
TypeScript
5 lines
113 B
TypeScript
export type Cancel = () => void;
|
|
export type Source<T> = {
|
|
(): T;
|
|
(callback: (value: T) => void): Cancel;
|
|
};
|