interface InvoiceFunc {
	(name : string, total : number) : void;
}

let myInvoice : InvoiceFunc;
myInvoice = function(n, t) {
	console.log(n);
	console.log(t);
}

myInvoice('Google', 500);

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: