Skip to content

Extending Promise base class typings

I am trying to extend Promise base class, with a static method and an instance method. I am having trouble with the typescript definitions. See my code below! With this code, when I try to defined Promise.timeout above, typescript gives me the error : Property timeout is a static member of type PromiseConstru…

How to get onMouseOver to work on both elements

I’m building an image slider with arrow keys above the image. I want to hide the arrow icons upon leaving the arrow icons and entering the image. I have gotten it to work on the left arrow icon but once I hover over the right arrow it doesn’t render only the left arrow allows both icons to appear.…