Skip to content

Commit

Permalink
fix: add default types (#4)
Browse files Browse the repository at this point in the history
To make types a little less verbose
  • Loading branch information
achingbrain authored Jan 12, 2022
1 parent 7cac34c commit d583f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export interface Transform<A, B> {
export interface Transform<A, B = A> {
(source: Source<A>): Source<B>
}

export interface Sink<T, R> {
export interface Sink<T, R = Promise<void>> {
(source: Source<T>): R
}

Expand Down

0 comments on commit d583f04

Please sign in to comment.