Closed sakamossan closed 1 year ago
It doesn't actually return void
, it returns an instance of the FixedHeader
"class". I'd kind of expected Typescript to infer that automatically. However, it isn't expected to be used publicly, so I think a void return is probably correct since we are documenting the API with Typescript here.
Thanks for the PR and flagging this up!
I'm encountering a type error in the type definition of types/types.d.ts.
This occurs when the
noImplicitAny
flag is enabled. I believe many projects might be using this setting.I checked the documentation, and it appears that this process does not expect a return value. I've added explicit type definitions accordingly.