File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
packages/use-growthbook/src Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @scaleway/use-growthbook ' : patch
3+ ---
4+
5+ Export directly some usable type on provider init attributes
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ export type ToolConfig = {
1111
1212export type TrackingCallback = NonNullable < Context [ 'trackingCallback' ] >
1313
14+ export type ErrorCallback = ( error : Error | string ) => void
15+
1416export type AbTestProviderProps = {
1517 children : ReactNode
1618 config : ToolConfig
1719 trackingCallback : TrackingCallback
18- errorCallback : ( error : Error | string ) => void
20+ errorCallback : ErrorCallback
1921 attributes : Attributes
2022 loadConfig ?: LoadConfig
2123}
Original file line number Diff line number Diff line change @@ -13,3 +13,8 @@ export type {
1313} from '@growthbook/growthbook-react'
1414export { useAbTestAttributes } from './useAbTestAttributes'
1515export { AbTestProvider } from './AbTestProvider'
16+ export type {
17+ TrackingCallback ,
18+ ErrorCallback ,
19+ ToolConfig ,
20+ } from './AbTestProvider'
You can’t perform that action at this time.
0 commit comments