PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Typescript handy types

type ExtractArg<T> = T extends (arg: infer U) => any ? U : T;

type MapTuple<Tuple extends [...any[]]> = {
  [Index in keyof Tuple]: ExtractArg<Tuple[Index]>;
};
type ExtractArg<T> = T extends (arg: infer U) => any ? U : T;

type MapTuple<Tuple extends [...any[]]> = {
  [Index in keyof Tuple]: ExtractArg<Tuple[Index]>;
};
BETA Snippet explanation automatically generated by OpenAI:

No explanation generated yet.

Snippet By Dev Dojo

ยท

Created June 12th, 2021

ยท

Report Snippet