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
Futhermore, it's not completely safe for a user to require typescript and pass along that enum value, since it may come from a version of typescript which is different than the one imported by dts-generator. The safest/simplest way to fix both issues is to use a string for the target option.
The text was updated successfully, but these errors were encountered:
This line will fail if the
target
option is set tots.ScriptTarget.ES3
, because that value is0
and will testfalse
:https://github.com/SitePen/dts-generator/blob/master/index.ts#L104
Futhermore, it's not completely safe for a user to
require
typescript and pass along that enum value, since it may come from a version of typescript which is different than the one imported by dts-generator. The safest/simplest way to fix both issues is to use a string for thetarget
option.The text was updated successfully, but these errors were encountered: