sam-goodwin / punchcard

Type-safe AWS infrastructure.
Apache License 2.0
506 stars 20 forks source link

fix(collector): return simple type from stream collectors #146

Closed sam-goodwin closed 3 years ago

sam-goodwin commented 3 years ago

This change returns a simple class, e.g. Topic<T> instead of CollectedTopic<T, Stream<..recursive>>.

Fixes: https://github.com/punchcard/punchcard/issues/145 - the IDE should be able to infer types properly and hopefully types will make sense in the IDE. This was great feedback.