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
buildURL('/search',{query: 'do a barrel roll'})buildURL('/search',{query: 'do a barrel roll',language: 'en'})buildURL('/search',{})// ~~ Property 'query' is missing in type '{}'
buildURL('/',{query: 'recursion'});// error, good!// ~~~~~~~~~~~~~~~~~~~~ Argument of type '{ query: string; }' is// not assignable to parameter of type 'null'buildURL('/',null);// okbuildURL('/');// we'd like this to be allowed// ~~~~~ Expected 2 arguments, but got 1.
buildURL('/search',{query: 'do a barrel roll'})buildURL('/search',{query: 'do a barrel roll',language: 'en'})buildURL('/search',{})// ~~ Property 'query' is missing in type '{}' ...buildURL('/',{query: 'recursion'});// ~~~~~~~~~~~~~~~~~~~~ Expected 1 arguments, but got 2.buildURL('/',null);// ~~~~ Expected 1 arguments, but got 2.buildURL('/');// ok