preamble: I\'m currently working on creating type definitions for existing js library;
The code I\'m currently working with, uses a TON of approach like this: