Develop a program using JavaScript to display all the properties of a given object Example object:
var student = {
name : "David Rayy",
sclass : "VI",
rollno : 12 };
Your task is to enhance this program by incorporating typing, optional arguments, and default values using Typescript.