async function convertJSONToDTCG(blobOrPath, opts) {
  const jsonBlob = await blobify(blobOrPath, 'application/json');
  validateBlobType(jsonBlob, 'json', typeof blobOrPath === 'string' ? blobOrPath : undefined);

  const fileContent = await jsonBlob.text();
  const converted = JSON.stringify(convertToDTCG(JSON.parse(fileContent), opts), null, 2);
  return new Blob([converted], {
    type: 'application/json',
  });
}
@param {Blob|string} blobOrPath
@param {{applyTypesToGroup?: boolean}} [opts]