Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rhum/src/types.ts>MethodOf

A test double library
Latest
type alias MethodOf
import { type MethodOf } from "https://deno.land/x/rhum@v2.2.0/src/types.ts";

Describes the type as a method of the given generic Object.

This is used for type-hinting in places like .verify("someMethod").

definition: [K in keyof Object]: Object[K] extends (...args: any[]) => unknown ? K : never[keyof Object]