lib/engine/api.js
function getSerializedType(value, descriptor) {

    if (value instanceof SerializedVariable) {
      return 'SerializedVariable';
    } else

    if (descriptor) {
      return descriptor.type;
    } else

    if (value instanceof Date) {
      return 'Date';
    } else

    if (typeof value === 'object') {
      return 'Json';
    } else

    if (typeof value === 'boolean') {
      return 'Boolean';
    } else

    if (typeof value === 'number') {
      return 'Double';
    } else {
      return 'String';
    }
  }
function getSerializedType(value, descriptor) {

    if (value instanceof SerializedVariable) {
      return 'SerializedVariable';
    } else

    if (descriptor) {
      return descriptor.type;
    } else

    if (value instanceof Date) {
      return 'Date';
    } else

    if (typeof value === 'object') {
      return 'Json';
    } else

    if (typeof value === 'boolean') {
      return 'Boolean';
    } else

    if (typeof value === 'number') {
      return 'Double';
    } else {
      return 'String';
    }
  }
function getSerializedType ( value , descriptor ) { if ( value instanceof SerializedVariable ) { return 'SerializedVariable' ; } else if ( descriptor ) { return descriptor . type ; } else if ( value instanceof Date ) { return 'Date' ; } else if ( typeof value === 'object' ) { return 'Json' ; } else if ( typeof value === 'boolean' ) { return 'Boolean' ; } else if ( typeof value === 'number' ) { return 'Double' ; } else { return 'String' ; } }
Get serialized type for given value
Get serialized type for given value