(value: unknown)
| 1140 | } |
| 1141 | |
| 1142 | export function parseUnsignedInteger(value: unknown): number | null { |
| 1143 | const parsedInt = parseInteger(value); |
| 1144 | |
| 1145 | return parsedInt != null && parsedInt >= 0 ? parsedInt : null; |
| 1146 | } |
| 1147 | |
| 1148 | /** |
| 1149 | * This function throws a MongoAPIError in the event that either of the following is true: |
no test coverage detected