Bridge Pattern in TypeScript

The Bridge pattern is similar to the Adapter pattern except in the intent that you developed it.

The Bridge is an approach to refactor already existing code, whereas the Adapter creates an interface on top of existing code through existing available means without refactoring any existing code or interfaces.

The motivation for converting your code to the Bridge pattern is that it may be tightly coupled. There is logic and abstraction close together that is limiting your choices in how you can extend your solution in the way that you need.




A Design Pattern is a description or template that can be repeatedly applied to a commonly recurring problem in software design. A familiarity of Design Patterns is very useful when planning, discussing, managing and documenting your applications from now on and into the future.

Recommended from Medium

How to learn beginner node js

Scaffolding a project using lerna and lerna-changelog

Solving 100vh problem on web responsive mobile screens

Implement a Simple Mobile Authentication Flow With React-Navigation.

ES6 Javascript

Introduction to React

Performance optimization using IntersectionObserver with component viewport — ReactJS.

A re-introduction to JavaScript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sean Bradley

Sean Bradley

Developer of real time, low latency, high availability, asynchronous, multi threaded, remotely managed, fully automated and monitored solutions.

More from Medium

TypeScript Type Gymnastics: Array lengths implement numerical operations

Bundling a TypeScript library for Node with Rollup.JS

Composite Pattern in TypeScript

Publish Typescript Package in NPM