Skip to content

Commit

Permalink
test(styled): 🏷️ export types for each component
Browse files Browse the repository at this point in the history
  • Loading branch information
diecodev committed Jul 24, 2024
1 parent da30de8 commit cd18a99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export { CalendarInline as Calendar } from './styled/inline';
export { DatePicker } from './styled/popup';
export type { CalendarInlineProps } from './styled/inline';
export type { DatePickerProps } from './styled/popup';
2 changes: 1 addition & 1 deletion src/lib/styled/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Calendar } from './icons';
import { CalendarInline, type CalendarInlineProps } from './inline';
import styles from './style.css?inline';

interface DatePickerProps extends CalendarInlineProps {
export interface DatePickerProps extends CalendarInlineProps {
mode?: 'inline' | 'popup';
// trigger stuffs
triggerProps?: PropsOf<'button'>;
Expand Down

0 comments on commit cd18a99

Please sign in to comment.