mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
Fix default type
This commit is contained in:
parent
4637ffdf3d
commit
973e6704e8
@ -7,14 +7,14 @@ import ResultsPreview from './ResultsPreview';
|
|||||||
import { SuggestedToolsSection } from './SuggestedToolsSection';
|
import { SuggestedToolsSection } from './SuggestedToolsSection';
|
||||||
import { ToolOperationHook } from '../../../hooks/tools/shared/useToolOperation';
|
import { ToolOperationHook } from '../../../hooks/tools/shared/useToolOperation';
|
||||||
|
|
||||||
export interface ReviewToolStepProps<TParams = any> {
|
export interface ReviewToolStepProps<TParams = unknown> {
|
||||||
isVisible: boolean;
|
isVisible: boolean;
|
||||||
operation: ToolOperationHook<TParams>;
|
operation: ToolOperationHook<TParams>;
|
||||||
title?: string;
|
title?: string;
|
||||||
onFileClick?: (file: File) => void;
|
onFileClick?: (file: File) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createReviewToolStep<TParams = any>(
|
export function createReviewToolStep<TParams = unknown>(
|
||||||
createStep: (title: string, props: any, children?: React.ReactNode) => React.ReactElement,
|
createStep: (title: string, props: any, children?: React.ReactNode) => React.ReactElement,
|
||||||
props: ReviewToolStepProps<TParams>
|
props: ReviewToolStepProps<TParams>
|
||||||
): React.ReactElement {
|
): React.ReactElement {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user