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

x/actionify/tests/deps.ts>returnsThis

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function returnsThis
import { returnsThis } from "https://deno.land/x/actionify@0.3.0/tests/deps.ts";

Creates a function that returns the instance the method was called on.

Type Parameters

optional
Self = any
optional
Args extends unknown[] = any[]

Returns

(this: Self, ...args: Args) => Self