interface InvoiceFunc {
(name : string, total : number) : void;
}
let myInvoice : InvoiceFunc;
myInvoice = function(n, t) {
console.log(n);
console.log(t);
}
myInvoice('Google', 500);
To embed this project on your website, copy the following code and paste it into your website's HTML: