From 16062bbe5030682577eaed00839f2bd245f373dd Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 30 Jan 2024 12:37:30 +0100 Subject: [PATCH] Add compatibility with verbatimModuleSyntax TypeScript option --- src/renderers/contentful/renderContentfulImports.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/contentful/renderContentfulImports.ts b/src/renderers/contentful/renderContentfulImports.ts index 2472eb6b..48faf5c7 100644 --- a/src/renderers/contentful/renderContentfulImports.ts +++ b/src/renderers/contentful/renderContentfulImports.ts @@ -5,7 +5,7 @@ export default function renderContentfulImports( return ` // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT MODIFY IT. - import { ${localization ? "" : "Asset, "}Entry } from 'contentful' - ${hasRichText ? "import { Document } from '@contentful/rich-text-types'" : ""} + import type { ${localization ? "" : "Asset, "}Entry } from 'contentful' + ${hasRichText ? "import type { Document } from '@contentful/rich-text-types'" : ""} ` }