import { promisify } from "https://deno.land/x/polkadot@0.2.19/util/mod.ts";
Examples
const { promisify } from '@polkadot/util';
await promisify(null, ((a, cb) => cb(null, a), true); // resolves with `true`
await promisify(null, (cb) => cb(new Error('error!'))); // rejects with `error!`