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
Basics
TypeScript declarations do not allow not leaving out optional parameters.
Describe the bug
In the TypeScript declarations optional parameters do not have types with ?, making them required parameters. Examples include toArray(initial: any[]): any[];, where initial is described as an optional argument. However, this should be toArray(initial?: any[]): any[];. This also goes for DataStream.map functions, which take an optional sub-class constructor.
To Reproduce
Attempt using the functions without supplying optional parameters in TypeScript. This should produce errors during transpilation.
Expected behavior
Use functions without supplying optional parameters. Compilation should not produce errors.
Test case
If possible, please provide an automated test case to include, better yet in a forked scramjet repo in test/cases.
Screenshots
Not applicable
System:
Any OS
TypeScript 3.4.1
Additional context
Not applicable
The text was updated successfully, but these errors were encountered:
Basics
TypeScript declarations do not allow not leaving out optional parameters.
Describe the bug
In the TypeScript declarations optional parameters do not have types with ?, making them required parameters. Examples include
toArray(initial: any[]): any[];
, where initial is described as an optional argument. However, this should betoArray(initial?: any[]): any[];
. This also goes for DataStream.map functions, which take an optional sub-class constructor.To Reproduce
Attempt using the functions without supplying optional parameters in TypeScript. This should produce errors during transpilation.
Expected behavior
Use functions without supplying optional parameters. Compilation should not produce errors.
Test case
If possible, please provide an automated test case to include, better yet in a forked scramjet repo in
test/cases
.Screenshots
Not applicable
System:
Additional context
Not applicable
The text was updated successfully, but these errors were encountered: