File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -282,13 +282,14 @@ export function useModal<
282
282
ComponentProps extends NiceModalArgs < T > ,
283
283
PreparedProps extends Partial < ComponentProps > = { } | ComponentProps ,
284
284
RemainingProps = Omit < ComponentProps , keyof PreparedProps > & Partial < ComponentProps > ,
285
+ ResolveType = unknown
285
286
> (
286
287
modal : T ,
287
288
args ?: PreparedProps ,
288
289
) : Omit < NiceModalHandler , 'show' > & {
289
290
show : Partial < RemainingProps > extends RemainingProps
290
- ? ( args ?: RemainingProps ) => Promise < unknown >
291
- : ( args : RemainingProps ) => Promise < unknown > ;
291
+ ? ( args ?: RemainingProps ) => Promise < ResolveType >
292
+ : ( args : RemainingProps ) => Promise < ResolveType > ;
292
293
} ;
293
294
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
294
295
export function useModal ( modal ?: any , args ?: any ) : any {
You can’t perform that action at this time.
0 commit comments