-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
refactor: types refactoring #1063
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly look into why your build is failing :/
I've fixed them 👍🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some reviews for you
@@ -50,7 +48,7 @@ function retrieveSchemaProp( | |||
export interface AsyncApiWebComponentProps extends AsyncApiProps { | |||
cssImportPath?: string; | |||
schemaFetchOptions?: RequestInit; | |||
schemaUrl: string; | |||
schemaUrl?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DhairyaMajmudar the schemaUrl
is not an optional value
@@ -2,8 +2,7 @@ import React, { useContext } from 'react'; | |||
import { AsyncAPIDocumentInterface } from '@asyncapi/parser'; | |||
|
|||
export const SpecificationContext = | |||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any | |||
React.createContext<AsyncAPIDocumentInterface>(null as any); | |||
React.createContext<AsyncAPIDocumentInterface>(null as never); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your changes here is unnecessarily strict and semantically incorrect in this scenario. I'd suggest we use the existing type :)
@@ -1,6 +1,5 @@ | |||
/* eslint-disable @typescript-eslint/no-unsafe-return */ | |||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line should be removed
Quality Gate passedIssues Measures |
Description
Changes proposed in this pull request:
-> Refactoring files by removing any keywords and typescript warnings disabling comments
cc: @AceTheCreator
Related issue(s)
N/A