Skip to content

Commit 2ba9595

Browse files
committed
docs: link to types
1 parent 1fe50bf commit 2ba9595

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/REACT_INTEGRATION.md

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ function App() {
2727

2828
## Props
2929

30+
> If needed, you can find more details in the [types declaration](../packages/display-react/types/index.d.ts)
31+
3032
`displayProps` can receive the following data:
3133

3234
### Common props

packages/display-react/types/index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type onFilter = (filter: Filter) => void;
88
type onChangeScene = (scene: { products: Product[] }) => void;
99
type onChangeProduct = (productChange: {prevProduct: Product, nextProduct: Product }) => void;
1010

11-
enum Language {
11+
export enum Language {
1212
'fr-FR' = 'fr-FR',
1313
'en-US' ='en-US'
1414
}
@@ -36,11 +36,11 @@ type DisplayBaseProps = {
3636
language?: Language,
3737
}
3838

39-
type DisplayIdProps = {
39+
export type DisplayIdProps = {
4040
displayid: String;
4141
} & DisplayBaseProps
4242

43-
type DisplayUrlProps = {
43+
export type DisplayUrlProps = {
4444
displayurl: String;
4545
} & DisplayBaseProps
4646

0 commit comments

Comments
 (0)