TypeScript

let name: string = "Kush" // valid
let age: int = "20" // error

type objType = {
	name: string,
	age: int,
	location: string,
}

let myObject: objType = {
	name: "Kush Gabani",
	age: 20,
	location: "Surat"
}

Jest

"scripts": [
	"test": "jest",
];
test("test case description", () => {
	// ...test case
});

Functions for asserting