-
Notifications
You must be signed in to change notification settings - Fork 45
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: enable TS strict mode #889
Merged
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
bd38f4d
chore: let's go baby
kanadgupta 45b4195
Merge branch 'next' into ts-strict-mode
kanadgupta d37d141
refactor: add new AuthenticatedCommandOptions type
kanadgupta fe7d9d1
chore: bring AuthenticatedCommandOptions into createGHA file
kanadgupta d22e3cc
refactor: version parameter in `cleanHeaders`
kanadgupta 64b085a
chore: other little typefixes in fetch file
kanadgupta 2a91415
chore: more little TS fixes
kanadgupta 69ed44c
chore: more straightforward type fixes
kanadgupta a71a0bb
Merge branch 'next' into ts-strict-mode
kanadgupta f7a2249
fix: various version typings
kanadgupta d21785f
chore: improved typing on oas prompt
kanadgupta ea2e542
fix: enable another tsconfig flag
kanadgupta b38e3a9
chore: add overdue stricter type
kanadgupta edf1240
refactor: backfill some types so we can re-enable lib check
kanadgupta bc36971
chore: temporarily disable strict mode to see if tests pass
kanadgupta c87861e
chore: remove some unnecessary overrides
kanadgupta 5100923
revert: actually bring back skipLibCheck
kanadgupta fa2f524
fix: do not fallback to json
kanadgupta 9c549d7
Merge branch 'next' into ts-strict-mode
kanadgupta f181e5b
Merge branch 'next' into ts-strict-mode
kanadgupta 3c7305f
test: fix test
kanadgupta f6c64ce
revert: re-enable strictness
kanadgupta 529e96f
chore: stricter option typing
kanadgupta dd326bd
refactor: remove function nesting
kanadgupta fd1c619
chore: fix typing in analyzer
kanadgupta b7dfaba
refactor: clearer type names
kanadgupta 3bac0e2
chore: pr feedback
kanadgupta d0a55c6
fix: lint
kanadgupta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor: version parameter in
cleanHeaders
- Loading branch information
commit d22e3ccb93f1bfbb2727f923cba6cc6415a4bc88
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,11 +222,8 @@ export default class OpenAPICommand extends Command { | |
const options: RequestInit = { | ||
headers: cleanHeaders( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I refactored the signature of our |
||
key, | ||
new Headers({ | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json', | ||
'x-readme-version': selectedVersion, | ||
}), | ||
selectedVersion, | ||
new Headers({ Accept: 'application/json', 'Content-Type': 'application/json' }), | ||
), | ||
body: JSON.stringify({ registryUUID }), | ||
}; | ||
|
@@ -283,12 +280,7 @@ export default class OpenAPICommand extends Command { | |
function getSpecs(url: string) { | ||
return readmeAPIFetch(url, { | ||
method: 'get', | ||
headers: cleanHeaders( | ||
key, | ||
new Headers({ | ||
'x-readme-version': selectedVersion, | ||
}), | ||
), | ||
headers: cleanHeaders(key, selectedVersion), | ||
}); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
the diff on this file is a bit wild but there aren't any actual changes to the code — just some refactoring to get rid of the unnecessary nested functions because TS doesn't like those (and neither do i lol)