(v: unknown)
| 246 | > |
| 247 | |
| 248 | export const defaultValueSerializer = (v: unknown): Json => { |
| 249 | if (typeof v === "string" || typeof v === "boolean" || v === null) return v |
| 250 | |
| 251 | if (typeof v === "number") { |
| 252 | if (Number.isNaN(v)) return "NaN" |
| 253 | if (v === Number.POSITIVE_INFINITY) return "Infinity" |
| 254 | if (v === Number.NEGATIVE_INFINITY) return "-Infinity" |
| 255 | return v |
| 256 | } |
| 257 | |
| 258 | return compileSerializedValue(v) |
| 259 | } |
| 260 | |
| 261 | export type NodeKeyImplementation< |
| 262 | d extends BaseNodeDeclaration, |
no test coverage detected
searching dependent graphs…