ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

chore: enable TS exactOptionalPropertyTypes

Open pskelin opened this issue 10 months ago • 0 comments

TypeScript description of the flag: https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes

This change is a preparation for introduction of property initializers. The goal is when a component property is defined as optional with a default value prop?: string = "default value"

This will be interpreted such that the value can be left out when using it from JSX (and it will get the default), but assigning undefined is forbidden and not handled by the component.

Enabling exactOptionalPropertyTypes is a preparation inside the project for this usage.

pskelin avatar Apr 12 '24 13:04 pskelin