SharePoint List Dao with TypeScript

As I am now using TypeScript, I thought that it would be good to rewrite the old GenericList script that I had provided a year ago.

Before to start, make sure that you’ve added TypeScript support to your Sharepoint solution, in order to do that I would suggest the reading of the following MSDN article by Marat BakirovCreating SharePoint solutions with TypeScript

Once that is done, you can find below the TypeScript code of the updated ListDao (previously GenericList).

All what is left to do in order to retrieve all the items of the Funds list (e.g.) is:

var fundsDao = new Gobbe.ListDao('Funds');
console.dir(fundsDao.getItems());