Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Generate

import type { Generate } from "https://raw.githubusercontent.com/EthanThatOneKid/codemod/main/github/shared/generate.ts";

Generate is a helper type to generate a type from a type or a function.

type Generate<T, U extends unknown[]> = T | ((...args: [K in keyof U]: U[K]) => T) | ((...args: [K in keyof U]: U[K]) => Promise<T>);

§Type Parameters

§
U extends unknown[]
[src]

§Type

§
T | ((...args: [K in keyof U]: U[K]) => T) | ((...args: [K in keyof U]: U[K]) => Promise<T>)
[src]