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
The @types/throng type definitions say that the first argument of throng() can be a number or a string if using the v4 definition, but in the source code parsedOptions() only checks if it is a function or a number, not a string.
Either the source code should be updated to account for options being a string, or the type defs should be updated to enforce a number is passed if using the legacy API.
The text was updated successfully, but these errors were encountered:
The @types/throng type definitions say that the first argument of
throng()
can be a number or a string if using the v4 definition, but in the source codeparsedOptions()
only checks if it is a function or a number, not a string.If a string is passed in for
options
as is allowed by the type defs, thethrong
invocation will error out.the type defs:
Either the source code should be updated to account for
options
being a string, or the type defs should be updated to enforce a number is passed if using the legacy API.The text was updated successfully, but these errors were encountered: