src/define/detect.js
function _gpfDefineBuildTypedEntity (definition) {
    var EntityBuilder = _gpfDefineRead$TypedProperties(definition),
        entityDefinition;
    if (!EntityBuilder) {
        EntityBuilder = _gpfDefineCheck$TypeProperty(definition);
    }
    entityDefinition = new EntityBuilder(definition);
    entityDefinition.check();
    return entityDefinition;
}
function _gpfDefineBuildTypedEntity (definition) {
    var EntityBuilder = _gpfDefineRead$TypedProperties(definition),
        entityDefinition;
    if (!EntityBuilder) {
        EntityBuilder = _gpfDefineCheck$TypeProperty(definition);
    }
    entityDefinition = new EntityBuilder(definition);
    entityDefinition.check();
    return entityDefinition;
}
function _gpfDefineBuildTypedEntity ( definition ) { var EntityBuilder = _gpfDefineRead$TypedProperties ( definition ) , entityDefinition ; if ( ! EntityBuilder ) { EntityBuilder = _gpfDefineCheck$TypeProperty ( definition ) ; } entityDefinition = new EntityBuilder ( definition ) ; entityDefinition . check ( ) ; return entityDefinition ; }
Factory to create the correct entity type

@param {Object} definition Entity definition literal object
@return {_GpfEntityDefinition} Entity definition instance
@throws {gpf.Error.InvalidEntityType}
@since 0.1.6
Factory to create the correct entity type