( obj: T )
| 149 | * @returns The input with nulls removed. |
| 150 | */ |
| 151 | export const removeNulls = <T extends Record<string, unknown>>( |
| 152 | obj: T |
| 153 | ): NoNullProperties<T> => |
| 154 | pickBy(obj, value => value !== null) as NoNullProperties<T>; |
| 155 | |
| 156 | type NormalizedFile = { |
| 157 | contents: string; |
no outgoing calls
no test coverage detected