import type { Fn , Fn2 } from "@thi.ng/api" ; remarks example param fn export const promisify = < T > ( fn ) => new Promise < T > ( ( resolve , reject ) => fn ( ( err , result ) => ( err != null ? reject ( err ) : resolve ( result ) ) ) ) ;