import { ReverseObjKeyValue } from '../../../_typings'
import invertObj from '../invertObjKeyVal'
type Eh = ReverseObjKeyValue<{ bah: 'humbug' }>
var valid: Eh = { humbug: 'bah' }
var invalid: Eh = { bah: 'humbug' }
const invertedStrong = invertObj<{ eh: 'canada' }>({ eh: 'canada' })
const strong = invertedStrong.eh
const inverted = invertObj({ eh: 'canada' })
const notAutoCompletedOrValidated = inverted.eh
const butHasIntellisense = inverted.canada
const includingTypeValueCheck = inverted.eh === 'canada'