type ResolveLexicon = T extends keyof Records ? Records[T] : { $type: T; }

Resolves a lexicon name to its record operation.