Currently, I am delving into a couple of legacy TypeScript projects that were developed by another individual. In these projects, they utilized ClientRect
in the following manner:
type CallbackFn = (rect: ClientRect) => void;
Upon inspection, TypeScript is flagging 'ClientRect' as deprecated. Can anyone provide guidance on the recommended alternative to 'ClientRect'?