Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove any type #108

Merged
merged 2 commits into from
Apr 10, 2023
Merged

fix: remove any type #108

merged 2 commits into from
Apr 10, 2023

Conversation

samchungy
Copy link
Contributor

@samchungy samchungy commented Apr 2, 2023

The any disables any Intellisense in the editors as the any overrides the overall type.

Before:
image

After:
image

I noticed there's quite a number of these throughout the codebase. Is it still required given we already have the new ISpecificationExtension interface? Shall I do a cleanup?

@samchungy samchungy marked this pull request as ready for review April 2, 2023 12:38
@@ -99,7 +99,7 @@ export class OpenApiBuilder {
return this;
}
addPath(path: string, pathItem: oa.PathItemObject): OpenApiBuilder {
this.rootDoc.paths = this.rootDoc.paths || [];
this.rootDoc.paths = this.rootDoc.paths || {};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that fixing this type caught this mistake

@pjmolina pjmolina merged commit 3a55eda into metadevpro:master Apr 10, 2023
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.

2 participants