(data: Record<string, unknown>, key: string)
| 188 | } |
| 189 | |
| 190 | function boolean(data: Record<string, unknown>, key: string) { |
| 191 | const value = data[key] |
| 192 | if (typeof value === "boolean") return value |
| 193 | if (typeof value === "string") return value === "true" ? true : value === "false" ? false : undefined |
| 194 | return undefined |
| 195 | } |
| 196 | |
| 197 | function integer(data: Record<string, unknown>, key: string) { |
| 198 | const value = number(data, key) |
no outgoing calls
no test coverage detected