I\'m new to Typescript, and not sure how to word this question.
I need to access two \"possible\" properties on an object that is passed in the constructor. I know
If you don't want to change the type or create an interface, you can also use this syntax to access unknown properties:
selector ():string { return this.options["selector"]; } template ():string { return this.options["template"]; }