Skip to content

Add type annotations for registerLiveChecks imports#10258

Draft
Lang-Qiu wants to merge 1 commit into
open-telemetry:mainfrom
Lang-Qiu:auto-pr/type_annotations-1780786216
Draft

Add type annotations for registerLiveChecks imports#10258
Lang-Qiu wants to merge 1 commit into
open-telemetry:mainfrom
Lang-Qiu:auto-pr/type_annotations-1780786216

Conversation

@Lang-Qiu

@Lang-Qiu Lang-Qiu commented Jun 6, 2026

Copy link
Copy Markdown

Problem

The registerLiveChecks functions imported in the test file lacked explicit type definitions, which could lead to type unsafety and reduced IDE support, such as incorrect autocompletion or error detection.

Changes

Added JSDoc type annotations to the two registerLiveChecks imports. The annotations specify that each function accepts a testFn parameter of type Function and returns void, improving type safety and developer experience without altering functionality.

Verification

These changes are minimal and non-breaking. They can be verified by reviewing the annotations for correctness, ensuring the code passes existing tests, and confirming improved IDE behavior (e.g., better type inference).

@linux-foundation-easycla

Copy link
Copy Markdown

CLA Not Signed

@github-actions github-actions Bot added the CI/infra Repo CI & infrastructure label Jun 6, 2026
@otelbot-docs otelbot-docs Bot added the missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer label Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/infra Repo CI & infrastructure missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants