import { ObjectHasKey } from './ObjectHasKey'; import { Intersection } from '../util/Intersection'; import { TupleHasIndex } from '../array/TupleHasIndex'; /** * Check if a type (object or tuple) has a certain key. */ export type HasKey = T extends any[] ? TupleHasIndex> : ObjectHasKey>;