Comparing version 1.3.0 to 1.4.0
@@ -29,2 +29,3 @@ Copyright Statement for Contributions to the Callbag Standard | ||
loreanvictor | Eugene Ghanizadeh Khoub, ghanizadeh.eugene@gmail.com | ||
devanshj | Devansh Jethmalani, jethmalani.devansh@gmail.com | ||
{ | ||
"name": "callbag", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "A standard for JS callbacks", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -16,7 +16,7 @@ export type START = 0; | ||
*/ | ||
export type Callbag<I, O> = { | ||
export interface Callbag<I, O> { | ||
(t: START, d: Callbag<O, I>): void; | ||
(t: DATA, d: I): void; | ||
(t: END, d?: any): void; | ||
}; | ||
} | ||
@@ -26,3 +26,3 @@ /** | ||
*/ | ||
export type Source<T> = Callbag<never, T>; | ||
export interface Source<T> extends Callbag<never, T> {} | ||
@@ -32,3 +32,3 @@ /** | ||
*/ | ||
export type Sink<T> = Callbag<T, never>; | ||
export interface Sink<T> extends Callbag<T, never> {} | ||
@@ -35,0 +35,0 @@ export type SourceFactory<T> = (...args: Array<any>) => Source<T>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24597