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

x/xstate/src/types.ts>IndexByType

State machines and statecharts for the modern web.
Go to Latest
type alias IndexByType
import { type IndexByType } from "https://deno.land/x/xstate@xstate%405.0.0-beta.19/src/types.ts";

Type Parameters

T extends { type: string; }
definition: [K in T["type"]]: T extends any ? (K extends T["type"] ? T : never) : never