| 78 | * @typeParam C - The type of the React component which forms the body of the dialog. |
| 79 | */ |
| 80 | export interface IHandle<C extends ComponentType> { |
| 81 | /** |
| 82 | * A promise which will resolve when the dialog closes. |
| 83 | * |
| 84 | * If the dialog body component calls the `onFinished` property, or the caller calls {@link close}, |
| 85 | * the promise resolves with an array holding the arguments to that call. |
| 86 | * |
| 87 | * If the dialog is closed by clicking in the background, the promise resolves with an empty array. |
| 88 | */ |
| 89 | finished: Promise<OnFinishedParams<C> | []>; |
| 90 | |
| 91 | /** |
| 92 | * A function which, if called, will close the dialog. |
| 93 | * |
| 94 | * @param args - Arguments to return to {@link finished}. |
| 95 | */ |
| 96 | close(this: void, ...args: OnFinishedParams<C>): void; |
| 97 | } |
| 98 | |
| 99 | interface IOptions<C extends ComponentType> { |
| 100 | onBeforeClose?: IModal<C>["onBeforeClose"]; |
nothing calls this directly
no outgoing calls
no test coverage detected