projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.58k stars 1.17k forks source link

Define Promise to be void to fix TS2794 error #798

Closed hackerwins closed 3 years ago

hackerwins commented 3 years ago

Checklist

What?

Define Promise to be void to fix TS2794 error

Why?

The following error occurs about the return type of Promise.

Expected 1 argument, but got 0. Did you forget to include 'void'
in your type argument to 'Promise'?

https://stackoverflow.com/questions/65354965/error-ts2794-expected-1-arguments-but-got-0-did-you-forget-to-include-void

How?

Feel good image:

(Add your own one below :])

LOL

dylanvorster commented 3 years ago

Fixed in latest