Skip to content

fix(swagger): Resolve TypeScript errors for swagger modules#1137

Merged
jeromehardaway merged 1 commit into
masterfrom
fix/swagger-typescript-errors
Jun 1, 2026
Merged

fix(swagger): Resolve TypeScript errors for swagger modules#1137
jeromehardaway merged 1 commit into
masterfrom
fix/swagger-typescript-errors

Conversation

@jeromehardaway

Copy link
Copy Markdown
Contributor

This pull request makes a small improvement to the way the SwaggerUI component is imported in the src/pages/api-docs.tsx file. The change adds type safety by specifying the SwaggerUIProps type when using Next.js's dynamic import. No other functionality or logic is affected.

  • Improved type safety for the dynamic import of the SwaggerUI component by specifying SwaggerUIProps in src/pages/api-docs.tsx.- Ensure missing dependencies are installed and locked in package-lock.json
  • Add explicit typing for dynamically imported SwaggerUI component

- Ensure missing dependencies are installed and locked in package-lock.json
- Add explicit typing for dynamically imported SwaggerUI component
@jeromehardaway jeromehardaway requested review from Copilot and jinu2ID June 1, 2026 23:47
@jeromehardaway jeromehardaway self-assigned this Jun 1, 2026
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vets-who-code-app Ready Ready Preview, Comment Jun 1, 2026 11:49pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds explicit typing to the dynamically imported SwaggerUI component to resolve TypeScript errors, and adjusts swagger-ui-react and @types/swagger-ui-react dependency specifiers in the lockfile to use caret ranges.

Changes:

  • Import SwaggerUIProps and pass it as a generic to dynamic<SwaggerUIProps>() in api-docs.tsx.
  • Loosen pinned versions of swagger-ui-react and @types/swagger-ui-react to caret ranges in package-lock.json.
  • Remove libc metadata fields from several optional native dependency entries in package-lock.json.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/pages/api-docs.tsx Adds SwaggerUIProps type parameter to the dynamic import for type safety.
package-lock.json Updates dependency version specifiers and removes libc fields from several optional native package entries.

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

@jinu2ID jinu2ID left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jeromehardaway jeromehardaway merged commit 5d3899c into master Jun 1, 2026
7 checks passed
@jeromehardaway jeromehardaway deleted the fix/swagger-typescript-errors branch June 1, 2026 23:53
@github-project-automation github-project-automation Bot moved this from Review / PR to Done in Vets Who Code Projects Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants