import { expectType } from 'tsd' ; import set from '../set' ; const someObj = { } ; const anyValue = 'any value' ; expectType < object > ( set ( someObj , 'a.b.c' , anyValue ) ) ; expectType < object > ( set ( someObj , [ 'a.b.c' ] , anyValue ) ) ; expectType < object > ( set ( someObj , [ 'a.b.c' , 2 , Symbol ( 'hep' ) ] , anyValue ) ) ;