Skip to content

Commit 9c269d9

Browse files
committed
fix: add missing types
1 parent 414e426 commit 9c269d9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/react/src/components/Survey/NPS.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useFlow } from '@/hooks/useFlow'
66

77
type NPSOptions = { label: string; value: string }[]
88

9-
interface NPSProps extends FormProps {
9+
export interface NPSProps extends FormProps {
1010
/**
1111
* The options to display in the NPS field.
1212
* If not provided, the default NPS numbers from 0 to 10 will be used.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// eslint-disable-next-line react-refresh/only-export-components -- NPS is a valid component name
2-
export { NPS } from './NPS'
2+
export { NPS, type NPSProps } from './NPS'

packages/react/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export { RadioField } from './components/Form/fields/RadioField'
2525
export { Label } from './components/Form/fields/Label'
2626
export { BaseField } from './components/Form/fields/BaseField'
2727
export { Media, Image, Video } from './components/Media'
28+
export { type NPSProps } from './components/Survey/NPS'
2829

2930
export * as Progress from './components/Progress'
3031
export { ProgressBadge, type ProgressBadgeProps } from './components/ProgressBadge'

0 commit comments

Comments
 (0)