(entry: any)
| 160 | |
| 161 | // --- Diagnostics helpers ---------------------------------------------------- |
| 162 | function summarizeNavEntry(entry: any) { |
| 163 | try { |
| 164 | if (!entry) return { kind: 'empty' }; |
| 165 | if (typeof entry === 'string') return { kind: 'string', moduleName: entry }; |
| 166 | const hasCreate = typeof (entry as any).create === 'function'; |
| 167 | const moduleName = (entry as any).moduleName; |
| 168 | const clearHistory = !!(entry as any).clearHistory; |
| 169 | const animated = (entry as any).animated; |
| 170 | const backstackVisible = (entry as any).backstackVisible; |
| 171 | const contextKeys = Object.keys((entry as any).context || {}); |
| 172 | return { |
| 173 | kind: 'entry', |
| 174 | hasCreate, |
| 175 | moduleName, |
| 176 | clearHistory, |
| 177 | animated, |
| 178 | backstackVisible, |
| 179 | contextKeys, |
| 180 | }; |
| 181 | } catch { |
| 182 | return { kind: 'unknown' }; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | function classifyResetArg(arg: any) { |
| 187 | try { |
no test coverage detected