Skip to content

Commit 10c9dce

Browse files
mitch1995Mitchell Charles
and
Mitchell Charles
authoredApr 8, 2024··
Add additional type exports (#1655)
* add additional type exports to support other ts moduleResolutions * create patch changeset --------- Co-authored-by: Mitchell Charles <mcharles@atlassian.com>
1 parent e69f533 commit 10c9dce

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
 

‎.changeset/empty-bags-remember.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@compiled/react': patch
3+
---
4+
5+
added additional type exports to support other ts moduleResolution methods

‎packages/react/src/index.ts

+16-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ import type { CompiledJSX } from './jsx/jsx-local-namespace';
44

55
export { ClassNames } from './class-names';
66
export { createStrictAPI } from './create-strict-api';
7+
export type {
8+
PseudosDeclarations,
9+
MediaQueries,
10+
AllowedStyles,
11+
ApplySchema,
12+
ApplySchemaMap,
13+
} from './create-strict-api/types';
714
export { default as css } from './css';
815
export { default as cssMap } from './css-map';
916
export { keyframes } from './keyframes';
10-
export { styled } from './styled';
17+
export { styled, StyledProps } from './styled';
1118
export type {
1219
CSSProperties,
1320
CSSProps,
@@ -16,7 +23,14 @@ export type {
1623
CssType,
1724
StrictCSSProperties,
1825
} from './types';
19-
export { type XCSSAllProperties, type XCSSAllPseudos, type XCSSProp, cx } from './xcss-prop';
26+
export {
27+
type XCSSAllProperties,
28+
type XCSSAllPseudos,
29+
type XCSSProp,
30+
type CompiledStyles,
31+
type Internal$XCSSProp,
32+
cx,
33+
} from './xcss-prop';
2034

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

0 commit comments

Comments
 (0)
Please sign in to comment.