(opts: TransitionOptions, defaultDeep: boolean)
| 166 | }; |
| 167 | |
| 168 | const waitForReady = async (opts: TransitionOptions, defaultDeep: boolean) => { |
| 169 | const deep = opts.deepWait !== undefined ? opts.deepWait : defaultDeep; |
| 170 | |
| 171 | if (deep) { |
| 172 | await Promise.all([deepReady(opts.enteringEl), deepReady(opts.leavingEl)]); |
| 173 | } |
| 174 | |
| 175 | await notifyViewReady(opts.viewIsReady, opts.enteringEl); |
| 176 | }; |
| 177 | |
| 178 | const notifyViewReady = async ( |
| 179 | viewIsReady: undefined | ((enteringEl: HTMLElement) => Promise<any>), |
no test coverage detected