[docs] Remove <any> from nextjs-with-typescript example (#16555)
[docs] Remove <any> from nextjs-with-typescript example (#16555)

* removing React.Ref<any> from nextjs-with-typescript example

* following code conventions of imporing

* Utilizing newly exposed LinkProps from next/link and adding all link props.

* dropping onError from MuiLink, which caused a TypeScript error. Reverting to "next": "latest".

* dropping onError altogether

* reverting back to named function

* Picking all TypographyProps

* added underline

* using LinkProps

* Using Omit instead of Pick with MuiLinkProps

* Adding onError

* poke codecov

callemall/material-ui,mui-org/material-ui,kybarg/material-ui,kybarg/material-ui,kybarg/material-ui,mui-org/material-ui,mbrookes/material-ui,callemall/material-ui,mbrookes/material-ui,rscnt/material-ui,rscnt/material-ui,callemall/material-ui,oliviertassinari/material-ui,rscnt/material-ui,lgollut/material-ui,callemall/material-ui,mbrookes/material-ui,mui-org/material-ui,oliviertassinari/material-ui,oliviertassinari/material-ui,kybarg/material-ui