Skip to content

fix(utils): explicit return type of LlmJson.validate().#1807

Merged
samchon merged 1 commit intomasterfrom
fix/explicit
Mar 26, 2026
Merged

fix(utils): explicit return type of LlmJson.validate().#1807
samchon merged 1 commit intomasterfrom
fix/explicit

Conversation

@samchon
Copy link
Copy Markdown
Owner

@samchon samchon commented Mar 26, 2026

This pull request makes a small update to the LlmJson utility. The validate function's return type is now explicitly specified as a function that takes an unknown input and returns an IValidation<unknown>. This improves type safety and clarity in the codebase.

@samchon samchon self-assigned this Mar 26, 2026
@samchon samchon added the enhancement New feature or request label Mar 26, 2026
@samchon samchon marked this pull request as ready for review March 26, 2026 10:47
Copilot AI review requested due to automatic review settings March 26, 2026 10:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens the public typing of the LlmJson.validate() utility by making its return type explicit, aligning the exported API with the actual validator shape returned by OpenApiValidator.create().

Changes:

  • Adds an explicit return type annotation to LlmJson.validate(): (input: unknown) => IValidation<unknown>.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@samchon samchon merged commit e228fb0 into master Mar 26, 2026
10 checks passed
@samchon samchon deleted the fix/explicit branch March 26, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants