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
I also wrote a simple type definition in my project
// T is the return type and U is the type of the parameterdeclare module 'z'{typeMatches=<T,U>(value: U,)=>(matcher: (value: U)=>void,matcher?: (value: U)=>void,matcher?: (value: U)=>void,matcher?: (value: U)=>void,)=>T;exportconstmatches: Matches;}
those types are obiviously wrong and there is some problems, one of them is that I need to keep repeating the optional matcher parameter in the type definition file when pattern matching have more matchers than the defined (4 in this case)
So, I'm about to start using this lib in a project, but I figured out that there is no type declaration file for the project or a
@types/z
packageThe text was updated successfully, but these errors were encountered: