diff --git a/packages/extension-ui/src/styled.ts b/packages/extension-ui/src/styled.ts index e15c4e7..af6fa84 100644 --- a/packages/extension-ui/src/styled.ts +++ b/packages/extension-ui/src/styled.ts @@ -1,4 +1,15 @@ // Copyright 2019-2026 @pezkuwi/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 -export { styled } from 'styled-components'; +import { styled } from 'styled-components'; +import type { IStyledComponent, RuleSet } from 'styled-components'; + +// Re-export styled with proper types to avoid TS2742 errors in declaration files +export { styled }; + +// Helper type for styled component exports - ensures TypeScript can emit declarations +// without referencing internal styled-components paths +export type StyledComponentType = IStyledComponent<'web', Props>; + +// Type for the css template literal result +export type StyledCSS = RuleSet;