PS.ProjectContext.entityTypes property (ps.js)
Gets the collection of entity types that are exposed through the CSOM for the Project Web App instance.
Applies to: Project Professional 2013 | Project Server 2013
var value = PS.ProjectContext.get_entityTypes()
Return value
PS.EntityTypes
A collection of EntityType objects.
Remarks
Entity types include projects, enterprise resources, tasks, assignments, custom fields, and so on.