desc private param promiseLike returns { Promise < T > } export function promiseOf < T > ( promiseLike ) { return new Promise ( ( resolve , reject ) => { promiseLike . then ( resolve , reject ) ; } ) ; }