xxxxxxxxxx
if(typeObj==undefined){
console.log('typescript object is of type unknown')
}
xxxxxxxxxx
// specify a perticular type to the object
interface IName {
firstname: string,
lastname: string
}
var obj: IName
// force assign the type somewhere in the code
function(someinput){
var temp = someinput as IName;
// never null check
var temp = someinput!;
}