Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/keywork/router/mod.ts>isFetcher

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

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

Returns

fetcherLike is Fetcher<BoundAliases>