How can I constraint a type if use element ref as an input value of a function

前端 未结 0 1934
北海茫月
北海茫月 2021-02-05 20:34

I have tried codes like this, but it seems T should have some constraints which I am not clear.

export const useResizeObserver = (elementRef: ElementRef&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题