Problem Overview
Miscellaneous files have 14 TypeScript errors across validators, helpers, and endpoint code.
Child of #74
Error Breakdown
edr/helpers.ts (3 errors)
Lines 10, 14, 18: Type mismatch - string values ("now", "latest") not assignable to object
error TS2322: Type 'string' is not assignable to type 'object'
Fix: Update type definition to allow string | object for temporal parameters
endpoint.ts (2 errors)
Lines 632, 633: Same temporal parameter type issue
stac/endpoint.ts (2 errors)
Lines 147, 148: Same temporal parameter type issue
sensorml-validator.ts (3 errors)
Lines 99, 129, 153: Setting warnings property not in ValidationResult type
swe-validator.ts (1 error)
Line 512: Type mismatch - string not assignable to ValidationError
request-builders.spec.ts (1 error)
Line 404: Wrong number of arguments passed to function (expects 1-2, got 3)
sensorml/schema-alignment.spec.ts (1 error)
Line 8: Importing Event that's declared locally but not exported
validation spec files (1 error)
constraint-validator.spec.ts Line 356: Time interval array type mismatch
Solution Strategy
Group fixes by type:
- Temporal parameters: Update type definitions to allow string literals
- Validation warnings: Add property or use alternative
- Function signatures: Fix argument counts
- Exports: Add missing export declarations
Problem Overview
Miscellaneous files have 14 TypeScript errors across validators, helpers, and endpoint code.
Child of #74
Error Breakdown
edr/helpers.ts (3 errors)
Lines 10, 14, 18: Type mismatch - string values ("now", "latest") not assignable to
objectFix: Update type definition to allow
string | objectfor temporal parametersendpoint.ts (2 errors)
Lines 632, 633: Same temporal parameter type issue
stac/endpoint.ts (2 errors)
Lines 147, 148: Same temporal parameter type issue
sensorml-validator.ts (3 errors)
Lines 99, 129, 153: Setting
warningsproperty not inValidationResulttypeswe-validator.ts (1 error)
Line 512: Type mismatch -
stringnot assignable toValidationErrorrequest-builders.spec.ts (1 error)
Line 404: Wrong number of arguments passed to function (expects 1-2, got 3)
sensorml/schema-alignment.spec.ts (1 error)
Line 8: Importing
Eventthat's declared locally but not exportedvalidation spec files (1 error)
constraint-validator.spec.ts Line 356: Time interval array type mismatch
Solution Strategy
Group fixes by type: