Helper to type the registered scoped bridge correctly.
FIXME: This is needed because register is not an async function, so
E(x).register needs to reconstruct its return value as a Promise, which
loses the function's genericity. If register was async, we could use its
type directly, and it would remain generic.
Helper to type the registered scoped bridge correctly.
FIXME: This is needed because
register
is not an async function, soE(x).register
needs to reconstruct its return value as a Promise, which loses the function's genericity. Ifregister
was async, we could use its type directly, and it would remain generic.