You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I define an interface that has a method using a destructured parameter and individual fields are documented using @param, I expect no warning about the parameter not being used as long as it is used in implementations of the interface.
Actual Behavior
Typedoc emits a warning [warning] The signature TestInterface.method has an @param with name "options.field", which was not used.
Steps to reproduce the bug
create index.ts with content below
run npx typedoc@0.25.7 index.ts
typeOptions={field: string}interfaceTestInterface{/** * @param options.field test field */method(options: Options): void}classTestClassimplementsTestInterface{method(options: Options){console.log(options.field)}}
Environment
Typedoc version: 0.25.7
TypeScript version: -
Node.js version: 20.10.0
OS: -
The text was updated successfully, but these errors were encountered:
This is working as expected -- that description isn't used and won't be present in your documentation. There's an open issue, #2147, for changing that, but it needs design work.
Search terms
interface
@param
destructured not usedExpected Behavior
When I define an interface that has a method using a destructured parameter and individual fields are documented using
@param
, I expect no warning about the parameter not being used as long as it is used in implementations of the interface.Actual Behavior
Typedoc emits a warning
[warning] The signature TestInterface.method has an @param with name "options.field", which was not used.
Steps to reproduce the bug
index.ts
with content belownpx typedoc@0.25.7 index.ts
Environment
The text was updated successfully, but these errors were encountered: