endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
819 stars 71 forks source link

refactor(daemon): Parameterize provide type assertion #2210

Closed kriskowal closed 5 months ago

kriskowal commented 5 months ago

This change adds a vestigial second argument to provide that just hints to TypeScript the expected return type, resulting is much less verbose type narrowing. I’ve also advanced provide higher in the flow so it can eat all the forward-reference lint comments.