How to provide a specific node template in a custom module I am using a custom module and using Bartik theme(from Drupal 8 core module) and hence need to define a content type specific template like node--[type].html.twig 

I added hook_theme in my custom module as follows

function custom_autofill_reference_theme($existing, $type, $theme, $path){
   drupal_set_message($path);
   return [
    'node' =&gt; [
      'path' =&gt; $path . '/templates',
      'template' =&gt; 'node',
    ],
  ];
}


but not sure on how to add a content type specific template in a custom module without the need to create a custom theme?
/**
 * Implements hook_theme().
 */
function custom_theme() {
  return [
    'node__custom_content_type' =&gt; [
      'base hook' =&gt; 'node',
    ],
  ];
}


Then make sure that you have the content type template under custom/templates/node--custom-content-type.html.twig