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
registeris not an async function, soE(x).registerneeds to reconstruct its return value as a Promise, which loses the function's genericity. Ifregisterwas async, we could use its type directly, and it would remain generic.