Skip to content
Version: xstate@5.0.0

IndexByProp type​

Signature:

export type IndexByProp<T extends Record<P, string>, P extends keyof T> = {
[E in T as E[P]]: E;
};