Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ReactUnipika/ReactUnipikaBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
const block = cn('g-ru-react-unipika');

interface ConvertedValue {
convertedValue?: any;

Check warning on line 14 in src/ReactUnipika/ReactUnipikaBase.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Unexpected any. Specify a different type
error?: any;

Check warning on line 15 in src/ReactUnipika/ReactUnipikaBase.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Unexpected any. Specify a different type
}

function convertValue(value: any, settings: UnipikaSettings): ConvertedValue {

Check warning on line 18 in src/ReactUnipika/ReactUnipikaBase.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Unexpected any. Specify a different type
try {
// TODO: fix me later
// The call is required because unipika.format() applies default values to a passed settings inplace.
Expand All @@ -41,13 +41,13 @@
}

interface WithReactUnipikaBaseProps<P extends ReactUnipikaCommonProps> {
renderVirtualized: (props: P, convertedValue: any) => React.ReactNode;

Check warning on line 44 in src/ReactUnipika/ReactUnipikaBase.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Unexpected any. Specify a different type
}

export function withReactUnipikaBase<P extends ReactUnipikaCommonProps>(
config: WithReactUnipikaBaseProps<P>,
) {
return function ReactUnipikaBaseComponent(props: P) {
): React.FC<P> {
return function ReactUnipikaBaseComponent(props: P): React.ReactNode {
const {
value,
settings = defaultUnipikaSettings,
Expand Down
Loading