Types

We need to declare some identifiers required for the InversifyJS type bindings. If you don't know what a type binding is, you should go back to Chapter 5, Working with Dependencies, to learn the basics about InversifyJS. We are going to declare a binding for the MovieRepository class:

export const TYPE = { 
    MovieRepository: Symbol("MovieRepository") 
}; 

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.