Typescript implementation and definition file for Freebase