Skip to content

refactor: drop the @ts-ignore from ValidationError - #650

Open
kahirokunn wants to merge 1 commit into
cloudevents:mainfrom
kahirokunn:validation-error-ts-ignore
Open

refactor: drop the @ts-ignore from ValidationError#650
kahirokunn wants to merge 1 commit into
cloudevents:mainfrom
kahirokunn:validation-error-ts-ignore

Conversation

@kahirokunn

@kahirokunn kahirokunn commented Aug 17, 2026

Copy link
Copy Markdown

Proposed Changes

Remove the @ts-ignore from ValidationError.

Description

Type the local error array as Array<string | ErrorObject> so TypeScript can check the reduce() call without changing runtime behavior. Focused tests cover string, Ajv, and missing errors.

@kahirokunn

kahirokunn commented Aug 17, 2026

Copy link
Copy Markdown
Author

Hi ✋ would you mind taking a look when you have a chance? Thank you 🙏

@kahirokunn
kahirokunn force-pushed the validation-error-ts-ignore branch from 01ba484 to 8cd5a1b Compare August 17, 2026 11:13
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
@kahirokunn
kahirokunn force-pushed the validation-error-ts-ignore branch from 8cd5a1b to 507ec01 Compare August 17, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant