(value: T, map?: NullWideningMap)
| 119 | * correctly. With no map, the value is returned untouched. |
| 120 | */ |
| 121 | export function undoNullWidening<T>(value: T, map?: NullWideningMap): T { |
| 122 | if (!map) return value |
| 123 | return walk(value, map) as T |
| 124 | } |
no test coverage detected