Get field types of a content type I am using Drupal 8.4. 
I am trying to dynamically create/update field data for a content type.

Is there a way to get the type of a field (e.g. text, image, file upload) for a content type?
You can obtain the field type using Entity field manager.

$definitions = \Drupal::service('entity_field.manager')
  -&gt;getFieldStorageDefinitions('node');

$field_type = $definitions['field_image']-&gt;getType();