@param should not error on non-functions #22410
Labels
Bug
A bug in TypeScript
Domain: JSDoc
Relates to JSDoc parsing and type generation
Fixed
A PR has been merged for this issue
Milestone
Expected behavior:
No error -- the external documentation for
util.inherits
is written on the export of the internal implementation of it. This is fine. Perhaps the compiler should require the type of the initializer to have a signature with a parameter namedctor
, but right now it just looks at the syntax.Actual behavior:
An error that
inherits
has no parameter namedctor
.The text was updated successfully, but these errors were encountered: