<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Types/Interfaces not accessible within extension? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Types-Interfaces-not-accessible-within-extension/m-p/1177370#M43571</link>
    <description>&lt;P&gt;Thanks for the mention&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/620965"&gt;@Victor_Becerra&lt;/a&gt;,.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/966560"&gt;@MSundman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try to use&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;.d.ts&lt;/STRONG&gt;&lt;/EM&gt; Files for Shared Types?&lt;/P&gt;
&lt;P&gt;I mean,&amp;nbsp;move shared types to a declaration file like &lt;EM&gt;types.d.ts&lt;/EM&gt; and import them where needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also refer UI Extensions examples repo by Hubspot too.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/HubSpot/ui-extensions-examples/tree/main" target="_blank"&gt;https://github.com/HubSpot/ui-extensions-examples/tree/main&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 17:17:00 GMT</pubDate>
    <dc:creator>kosalaindrasiri</dc:creator>
    <dc:date>2025-07-16T17:17:00Z</dc:date>
    <item>
      <title>Types/Interfaces not accessible within extension?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Types-Interfaces-not-accessible-within-extension/m-p/1176845#M43558</link>
      <description>&lt;P&gt;So, we're using the UI extensions with typescript. And noticing that no types or interfaces are accessible outside of the file they're exported from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. we have a file with an exported type (or interface) like this:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;# /component/Breadcrumb/BreadCrumbItem.ts&lt;/P&gt;&lt;P&gt;export type BreadcrumbItem = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; label: string;&lt;/P&gt;&lt;P&gt;&amp;nbsp; path: string;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;and if we import it like this (regardless of whether we use import or import type)&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;# /component/Breadcrumb/Breadcrumb.tsx&lt;/P&gt;&lt;P&gt;import type { BreadcrumbItem } from './BreadcrumbItem';&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;We will always get an error like this:&lt;/P&gt;&lt;P&gt;components/Breadcrumb/Breadcrumb.tsx (5:9) "BreadcrumbItem" is not exported by "components/Breadcrumb/BreadcrumbItem.ts", imported by "components/Breadcrumb/Breadcrumb.tsx".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else encountered this and found a workaround/solution?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 18:38:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Types-Interfaces-not-accessible-within-extension/m-p/1176845#M43558</guid>
      <dc:creator>MSundman</dc:creator>
      <dc:date>2025-07-15T18:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Types/Interfaces not accessible within extension?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Types-Interfaces-not-accessible-within-extension/m-p/1177289#M43568</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/966560"&gt;@MSundman&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for reaching out to the Community!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to invite some community members who are subject matter experts to join this conversation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/586290"&gt;@ArisudanTiwari&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/935114"&gt;@kosalaindrasiri&lt;/a&gt;&amp;nbsp;&amp;nbsp;- Would you be able to share any insights on this? Your expertise would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Victor&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 15:47:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Types-Interfaces-not-accessible-within-extension/m-p/1177289#M43568</guid>
      <dc:creator>Victor_Becerra</dc:creator>
      <dc:date>2025-07-16T15:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Types/Interfaces not accessible within extension?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Types-Interfaces-not-accessible-within-extension/m-p/1177370#M43571</link>
      <description>&lt;P&gt;Thanks for the mention&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/620965"&gt;@Victor_Becerra&lt;/a&gt;,.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/966560"&gt;@MSundman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try to use&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;.d.ts&lt;/STRONG&gt;&lt;/EM&gt; Files for Shared Types?&lt;/P&gt;
&lt;P&gt;I mean,&amp;nbsp;move shared types to a declaration file like &lt;EM&gt;types.d.ts&lt;/EM&gt; and import them where needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also refer UI Extensions examples repo by Hubspot too.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/HubSpot/ui-extensions-examples/tree/main" target="_blank"&gt;https://github.com/HubSpot/ui-extensions-examples/tree/main&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 17:17:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Types-Interfaces-not-accessible-within-extension/m-p/1177370#M43571</guid>
      <dc:creator>kosalaindrasiri</dc:creator>
      <dc:date>2025-07-16T17:17:00Z</dc:date>
    </item>
  </channel>
</rss>

