Skip to content

Commit 7a36e2d

Browse files
authored
Update index.tsx
1 parent bc9f378 commit 7a36e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const getModalId = (modal: string | React.FC<any>): string => {
211211
type NiceModalArgs<T> = T extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>
212212
? Omit<React.ComponentProps<T>, 'id'>
213213
: Record<string, unknown>;
214-
export declare function show<T extends any, C extends any>(modal: React.FC<C>, args?: NiceModalArgs<React.FC<C>>): Promise<T>;
214+
export function show<T extends any, C extends any>(modal: React.FC<C>, args?: NiceModalArgs<React.FC<C>>): Promise<T>;
215215
// export function show<T extends any, C extends React.FC>(modal: C, args?: Omit<React.ComponentProps<C>, 'id'>): Promise<T>;
216216
export function show<T extends any>(modal: string, args?: Record<string, unknown>): Promise<T>;
217217
export function show<T extends any, P extends any>(modal: string, args: P): Promise<T>;

0 commit comments

Comments
 (0)