add `with TypedSink[T]` as Avi suggested, please.