You didn't put any type specifiers in the argument you want to type.
adjust function too add HiddenField instead of T
function submitForm<T = RequiredHiddenField>(fields: HiddenField[])