(inputValidator: TType<T>, input: T)
| 137 | const redactedString = '********'; |
| 138 | const redactedTypes = [tPassword, tCookie]; |
| 139 | function sanitizeInput<T>(inputValidator: TType<T>, input: T): T { |
| 140 | return convertObject( |
| 141 | inputValidator, |
| 142 | input, |
| 143 | redactedTypes, |
| 144 | () => redactedString, |
| 145 | { dontValidateInput: true }, |
| 146 | ); |
| 147 | } |
| 148 | |
| 149 | function findFirstInputMatchingValidator( |
| 150 | wholeInputValidator: any, |
no test coverage detected