engine/DataSession.js
/**
		 * Overrides default behavior for flush results. If supplied, the result of
		 * any {@link DataOperation} with the matching type will be returned when
		 * the session flushes.
		 *
		 * @public
		 * @param {Function} type
		 * @returns {DataSession}
		 */
Overrides default behavior for flush results. If supplied, the result of
any  DataOperation with the matching type will be returned when
the session flushes.

@public
@param {Function} type
@returns {DataSession}
Overrides default behavior for flush results . If supplied the result of any DataOperation with the matching type will be returned when the session flushes . @public @param { Function } type @returns { DataSession }
withResultType(type) {
			assert.argumentIsValid(type, 'type', x => is.extension(DataOperation, type), 'inherits DataOperation');
			this._resultTypes.push(type);
			this._resultTypes = array.unique(this._resultTypes);
			return this;
		}
withResultType ( type ) { assert . argumentIsValid ( type , 'type' , x => is . extension ( DataOperation , type ) , 'inherits DataOperation' ) ; this . _resultTypes . push ( type ) ; this . _resultTypes = array . unique ( this . _resultTypes ) ; return this ; }
Overrides default behavior for flush results.
Overrides default behavior for flush results .