( config: RuntimeConfig | undefined )
| 304 | * This narrows the type to allow safe access to srcBaseDir. |
| 305 | */ |
| 306 | export function hasSrcBaseDir( |
| 307 | config: RuntimeConfig | undefined |
| 308 | ): config is Extract<RuntimeConfig, { srcBaseDir: string }> { |
| 309 | if (!config) return false; |
| 310 | return "srcBaseDir" in config && typeof config.srcBaseDir === "string"; |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * Helper to safely get srcBaseDir from a runtime config. |
no outgoing calls
no test coverage detected