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>);