Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/src/types.ts>Get

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
type alias Get
import { type Get } from "https://deno.land/x/actionify@0.3.0/src/types.ts";

Basically does Union[Key] but when Union is a union it only gives Union[Key] for the members of the union for which it is a valid key.

Type Parameters

Union
Key extends keyof any
definition: Union extends Record<Key, any> ? Union[Key] : never