function tryPrepareOptions(model, propertyKey, args) {
            var optionIndex = models_1.INFER_ALIAS_MAP[propertyKey];
            if (optionIndex !== undefined) {
                var options = args[optionIndex];
                if (options) {
                    args[optionIndex] = models_1.inferAlias(options, model);
                }
            }
        }
/**
         * Prepares options if necessary:
         *  - infers alias of given options
         */
Prepares options if necessary:
- infers alias of given options
Prepares options if necessary : - infers alias of given options
function tryPrepareOptions(model, propertyKey, args) {
            var optionIndex = models_1.INFER_ALIAS_MAP[propertyKey];
            if (optionIndex !== undefined) {
                var options = args[optionIndex];
                if (options) {
                    args[optionIndex] = models_1.inferAlias(options, model);
                }
            }
        }
function tryPrepareOptions ( model , propertyKey , args ) { var optionIndex = models_1 . INFER_ALIAS_MAP [ propertyKey ] ; if ( optionIndex !== undefined ) { var options = args [ optionIndex ] ; if ( options ) { args [ optionIndex ] = models_1 . inferAlias ( options , model ) ; } } }
Prepares options if necessary:
  - infers alias of given options
Prepares options if necessary : - infers alias of given options