🚀 Feature Request
Affected Languages
General Information
- JSII Version: 0.18.0
- Platform: all
Description
JSII doesn't allow JSDoc-ing destructured parameters. For example:
/**
* @param bar Example description
*/
public foo({ a, b }: {[key: string]: string}) {
console.log(a, b);
}
throws the following error:
warning TS9999: JSII: In doc block of 'foo', '@param bar' refers to a nonexistent parameter.
In a real-world use:
/**
* Generate an Domain Name health check
*
* @param scope the parent Construct for this Construct
* @param id the logical name of this Construct
* @param props Domain name health check properties
*/
public static domainName(
scope: Construct,
id: string,
{ protocol, ...props }: DomainNameHealthCheckProps
) {
return new EndpointHealthCheck(scope, id, { ...props, ...protocol.options });
}
Proposed Solution
Don't check the parameter name for destructured properties
🚀 Feature Request
Affected Languages
TypeScriptorJavascriptPythonJavaC#,F#, ...)General Information
Description
JSII doesn't allow JSDoc-ing destructured parameters. For example:
throws the following error:
In a real-world use:
Proposed Solution
Don't check the parameter name for destructured properties