Closed
Description
π Search Terms
isolatedDeclarations, parameter properties, implicit undefined
π Version & Regression Information
- Present since
isolatedDeclarations
was added in TS5.5
β― Playground Link
π» Code
export class Bar {
constructor(private x?: Array | undefined) {}
}
π Actual behavior
Error:
Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
π Expected behavior
Should not give an error since the undefined is already explicit.
Additional information about the issue
No response