(data: Record<string, unknown>, key: string)
| 195 | } |
| 196 | |
| 197 | function integer(data: Record<string, unknown>, key: string) { |
| 198 | const value = number(data, key) |
| 199 | if (value === undefined) return undefined |
| 200 | return Math.round(value) |
| 201 | } |
| 202 | |
| 203 | function number(data: Record<string, unknown>, key: string) { |
| 204 | const value = data[key] |
no test coverage detected