This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Description
This is very similar to #26 (#26)
This code is OK because all paths resolve or reject:
function myMethod() : Promise<void> { return new Promise<void>((resolve, reject) => { if (something) { resolve() } else { reject(); } }); }
This code creates a violation because not all paths resolve/reject:
function myMethod() : Promise<void> { return new Promise<void>((resolve, reject) => { if (something) { resolve() } }); }
All of the rules for scope, variable shadowing, and type limitations apply from #26