import { singleton } from 'fp-ts/lib/Record' ; since export function objOf < K extends string > ( k ) ; export function objOf < K extends string , T > ( k , a ) ; export function objOf < K extends string , T > ( k , a ? ) { switch ( arguments . length ) { case 1 : return < T > ( a ) => singleton ( k , a ) ; case 2 : return singleton ( k , a as T ) ; } }