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
fix(jsii): Optional any represented as required (#237)
* fix(jsii): Optional `any` represented as required
Optional parameters and properties typed `any` would be represented as
required, despite the code unambiguously suggests the opposite. This is
due to the fact that `any` implicitly covers `null` and `undefined`.
This change fixes this by adding a specific provision for the question
mark token in the declarations of those, and adds compliance test
coverage for the same.
Fixes#230
* Mark all `any` types as `optional`.
Copy file name to clipboardExpand all lines: packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/.jsii
Copy file name to clipboardExpand all lines: packages/jsii-pacmak/test/expected.jsii-calc-base/dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace/Base.cs
Copy file name to clipboardExpand all lines: packages/jsii-pacmak/test/expected.jsii-calc-base/java/src/main/java/software/amazon/jsii/tests/calculator/base/Base.java
Copy file name to clipboardExpand all lines: packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs
+13-13
Original file line number
Diff line number
Diff line change
@@ -31,27 +31,20 @@ public virtual double EnumPropertyValue
Copy file name to clipboardExpand all lines: packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs
+7
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,13 @@ public IDictionary<string, Value_> AnotherOptional
0 commit comments