( value: unknown, path: string, issues: TaskNotesRuntimeQueryIssue[] )
| 3095 | } |
| 3096 | |
| 3097 | function normalizeRuntimeOffset( |
| 3098 | value: unknown, |
| 3099 | path: string, |
| 3100 | issues: TaskNotesRuntimeQueryIssue[] |
| 3101 | ): number { |
| 3102 | if (typeof value === "undefined" || value === null) return 0; |
| 3103 | if (typeof value !== "number" || !Number.isInteger(value) || value < 0) { |
| 3104 | issues.push({ |
| 3105 | path, |
| 3106 | code: "offset_invalid", |
| 3107 | message: "Runtime query offset must be a non-negative integer.", |
| 3108 | }); |
| 3109 | return 0; |
| 3110 | } |
| 3111 | return value; |
| 3112 | } |
| 3113 | |
| 3114 | function normalizeRuntimeScope( |
| 3115 | value: unknown, |
no outgoing calls
no test coverage detected