Closed jaredscheib closed 3 years ago
@Bunlong Would you be willing to review this?
@jaredscheib I just see it. Okay, I will merge it as soon as possible. I will let you know when it done. Thanks!
Thanks, @Bunlong. I can merge it if it becomes approved after you review it. Thank you again!
Thanks @Bunlong, but actually I'm unable to merge from my end. Likely due to repository permissions. If you'd like to enable that, I'd be happy to merge!
@jaredscheib you are invited as collaborator pls confirm.
Done -- thank you, @Bunlong! ππΌ Feel free to remove me as collaborator if you'd like :) γγγγ¨γγγγγΎγγοΌ π
@jaredscheib it's fine. I keep you as collaborator so you can improve it any time. γγγγ¨γγγγγΎγγ :bowing_man:
Previously the types could not be consumed properly in our application. The return type wanted to be the same as the return type of
useRef
and accept the generics of eitherHTMLCanvasElement
orHTMLImageElement
.This PR makes that fix so that the proper return type is given, making the TypeScript compiler happy. π