Created
          October 24, 2022 05:24 
        
      - 
      
- 
        Save semlinker/60ea28ec1c9dd9183da06c2f3cd8e311 to your computer and use it in GitHub Desktop. 
    Facade Pattern in TypeScript
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Client { | |
| private shapeFacade: ShapeFacade; | |
| constructor() { | |
| this.shapeFacade = new ShapeFacade(); | |
| } | |
| drawShapes() { | |
| this.shapeFacade.drawCircle(); | |
| this.shapeFacade.drawRectangle(); | |
| this.shapeFacade.drawTriangle(); | |
| } | |
| } | |
| const client = new Client(); | |
| client.drawShapes(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment