Remix
Remix
remix/fetch-router · FunctionView Source

isRequestMethod

Summary

Check if a string is one of the request methods supported by the router.

Signature

function isRequestMethod(method: string): method is RequestMethod;

Parameters

method

The request method to check

Returns

true if the method is supported by the router