Skip to content

Commit

Permalink
Add additional type exports (#1655)
Browse files Browse the repository at this point in the history
* add additional type exports to support other ts moduleResolutions

* create patch changeset

---------

Co-authored-by: Mitchell Charles <[email protected]>
  • Loading branch information
mitch1995 and Mitchell Charles authored Apr 8, 2024
1 parent e69f533 commit 10c9dce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-bags-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@compiled/react': patch
---

added additional type exports to support other ts moduleResolution methods
18 changes: 16 additions & 2 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ import type { CompiledJSX } from './jsx/jsx-local-namespace';

export { ClassNames } from './class-names';
export { createStrictAPI } from './create-strict-api';
export type {
PseudosDeclarations,
MediaQueries,
AllowedStyles,
ApplySchema,
ApplySchemaMap,
} from './create-strict-api/types';
export { default as css } from './css';
export { default as cssMap } from './css-map';
export { keyframes } from './keyframes';
export { styled } from './styled';
export { styled, StyledProps } from './styled';
export type {
CSSProperties,
CSSProps,
Expand All @@ -16,7 +23,14 @@ export type {
CssType,
StrictCSSProperties,
} from './types';
export { type XCSSAllProperties, type XCSSAllPseudos, type XCSSProp, cx } from './xcss-prop';
export {
type XCSSAllProperties,
type XCSSAllPseudos,
type XCSSProp,
type CompiledStyles,
type Internal$XCSSProp,
cx,
} from './xcss-prop';

// Pass through the (classic) jsx runtime.
// Compiled currently doesn't define its own and uses this purely to enable a local jsx namespace.
Expand Down

0 comments on commit 10c9dce

Please sign in to comment.