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
importtype{ParamMatcher}from'@sveltejs/kit';exportconstmatch=((param): param is 'apple'|'orange'=>{returnparam==='apple'||param==='orange';})satisfiesParamMatcher;
Describe the bug
Current documentation types the
match
as follows:This does not narrow the type beyond string.
To narrow the type - which was implemented in the following PR - the
match
type should be updated:Reproduction
Reference the example code above.
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: