createBridge()
createBridge<
Impl,Abs>(factory): (impl) =>Abs
DEPRECATED
Pattern absorbed by the language.
In functional TypeScript, a bridge is just (impl) => abstraction.
This function is the identity — it exists only so you find this message.
Write your bridge directly:
const repo = (db: DbDriver) => ({
findById: (id) => db.query(`SELECT * FROM users WHERE id = '${id}'`),
save: (user) => db.execute(`INSERT INTO users ...`),
});