fetch-event-source
fetch-event-source copied to clipboard
wrong? type of onmessage
trafficstars
https://github.com/Azure/fetch-event-source/blob/main/src/fetch.ts#L19. Correct me if I am wrong byt I dont see any reason to have Promise as return type here, and it forces you to add artifical return Promise.resolve() or something like this at the end of the code.