Skip to main content
Module

x/rhum/mod.ts>Types.MethodOf

A test double library
Go to Latest
type alias Types.MethodOf
import { type Types } from "https://deno.land/x/rhum@v2.1.0/mod.ts";
const { MethodOf } = Types;

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]