Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | /** * Types Index * * Central export point for all application types. * Import types from this file for convenience. * * @example * ```tsx * import { Product, UserProfile, PaymentMethod, ApiResponse } from '@/types'; * import { Nullable, DeepPartial, Brand } from '@/types'; * ``` */ // ============================================================================= // UTILITY TYPES // ============================================================================= export * from './utils'; // ============================================================================= // API TYPES // ============================================================================= export * from './api'; // ============================================================================= // DOMAIN TYPES // ============================================================================= export * from './product'; export * from './user'; export * from './payment'; export * from './order'; export * from './cart'; // Category types - use shop's Category as it's more comprehensive // The basic category.ts type is re-exported as SimpleCategory export type { Category as SimpleCategory } from './category'; export * from './shop'; // UI Component Types - handle conflicts explicitly // Use layout's Alignment as it's more complete export type { Alignment } from './layout'; // Use forms' RadioOption as it has generic support export type { RadioOption } from './forms'; // Re-export everything else from ui except conflicting types (RadioOption, Alignment) export type { ButtonProps, IconButtonProps, ModalProps, ConfirmDialogVariant, ConfirmDialogProps, InputInputProps, SelectInputProps, TextareaInputProps, InputProps, TextFieldProps, CheckboxProps, RadioGroupProps, DropdownItem, DropdownProps, CardProps, BadgeProps, Step, StepperProps, StarRatingProps, PriceDisplayProps, SkeletonProps, ProductListSkeletonProps, TextSkeletonProps, AvatarSkeletonProps, Toast, ToastContextValue, IconProps, SizeVariant, ColorVariant, StateVariant, Orientation, Spacing } from './ui'; // Re-export everything else from layout except Alignment export type { ContainerProps, InlineContainerProps, ResponsiveGridConfig, GridProps, ResponsiveGridItemConfig, GridItemProps, FlexProps, HStackProps, VStackProps, CenterProps, SectionProps, PageHeaderProps, SpacingSize, Justify, Breakpoint, Direction } from './layout'; // Re-export everything else from forms except RadioOption export type { InputFieldType, FieldState, FormFieldBaseProps, TextInputFieldProps, NumberInputFieldProps, TextareaFieldProps, SelectOption, SelectFieldProps, CheckboxFieldProps, RadioGroupFieldProps, FileInputFieldProps, DateInputFieldProps, ValidationRuleType, ValidationRule, FieldValidationResult, FormValidationResult, ValidatorFunction, FieldStateData, FormState, FormSubmitHandler, FormChangeHandler, FormBlurHandler, FormResetHandler, FormFieldConfig, FormConfig, UseFormReturn, FormLayout, FormBuilderProps, FormStepConfig, MultiStepFormState, UseMultiStepFormReturn, FormError, FormSubmissionError } from './forms'; // Content Types export * from './testimonial'; export * from './Menu'; // Admin Types export * from './admin'; // Common Utility Types - explicit exports to avoid conflicts with api.ts // api.ts has more comprehensive ApiResponse and PaginatedResponse export type { JsonValue, JsonObject, JsonArray, ApiMetadata, EventCallback, AsyncEventCallback, FormValues, FormFieldValue, ErrorWithMessage, WhereClause, SelectClause, OrderByClause, AnyFunction, AsyncFunction, UnknownRecord, StringRecord, NumberKeyedRecord, RequireKeys, } from './common'; export { isError, hasMessage, getErrorMessage, } from './common'; // Note: DeepPartial exported from utils.ts, Awaited is built-in TypeScript |