TypeScript: The constructor interface pattern
https://fettblog.eu/typescript-interface-constructor-pattern/
declare const filterMap: Map < string, typeof FilterItem >; filterMap. set ('number', AFilter) filterMap. set ('stuff', BFilter) The map’s generics are set to a string (for the token from the backend), and everything that complements the type signature of FilterItem. We use the typeof keyword here to be able to add classes to the map, not ...
DA: 7 PA: 66 MOZ Rank: 58