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

x/actionify/tests/deps.ts>returnsArg

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

Creates a function that returns one of its arguments.

Type Parameters

Arg
optional
Self = any

Parameters

idx: number

Returns

(this: Self, ...args: Arg[]) => Arg