Annotate the ty and name fields on Param and EventParam with #[doc(hidden)] to discourage users from creating their own isntances of those types wihtout using the new method. The reason for not making those fields private is that they are used by macros in different crates.
Motivation
Resolve https://github.com/alloy-rs/core/issues/240
Solution
new
method forParam
andEventParam
ty
andname
fields onParam
andEventParam
with#[doc(hidden)]
to discourage users from creating their own isntances of those types wihtout using thenew
method. The reason for not making those fields private is that they are used by macros in different crates.PR Checklist