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
urlString narrows the type to string, which is correct, but it also narrows the type to non-string types in the else clause.
It is wrong type assertion as the value can be non-url strings.
Related to #176, but I don't have any idea how to express URL in type.
I tried value is ${string}`` but it didn't work. (It seems it is treated just the same as value is string)
urlString
narrows the type tostring
, which is correct, but it also narrows the type to non-string types in theelse
clause.It is wrong type assertion as the value can be non-url strings.
is/source/index.ts
Lines 755 to 766 in e097645
The text was updated successfully, but these errors were encountered: