Closed ketan closed 5 years ago
Hi @ketan. This change was intentional and it's actually pointing out a type error. You've declared id as Stream<string>
however you're trying to set its value to string | undefined
. So what you'd want to do is declare id
as:
id: Stream<string | undefined>;
Thank you for confirming. Closing.
The following typescript that used to work earlier, stopped working after upgrade:
I understand v2 is a breaking change, I'm just trying to understand if it's an intentional breaking change. The change was introduced in commit 65ec92942792018534c341a985ce159fc6f9c2a0, where this line was moved here with a change in signature.
The fix is fairly simple, before I submit a PR, I thought I'd check if this was intentional, and if this fix is acceptable?