"Source" types

This commit is contained in:
Tangent Wantwight 2024-01-23 23:29:03 -05:00
parent 461a33e467
commit 73fc6bf3f0
1 changed files with 5 additions and 0 deletions

5
lib/source.ts Normal file
View File

@ -0,0 +1,5 @@
export type Cancel = () => void;
export type Source<T> = {
(): T;
(callback: (value: T) => void): Cancel;
};