Skip to main content
Module

x/keywork/mod.ts>Router.isFetcher

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
function Router.isFetcher
Re-export
import { Router } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { isFetcher } = Router;

Checks if a given object is shaped like a KeyworkFetcher

This fixes some weirdness where instanceof may get clobbered by a user's ESBuild configuration.

Type Parameters

optional
BoundAliases = { }

Parameters

fetcherLike: unknown