InvertResult

import { InvertResult } from "jsr:@ende/collections";

type alias

type InvertResult<T extends Record<PropertyKey, PropertyKey>> = { [P in keyof T as T[P]]: P }

Return type for invert.

Source