feat: add typescript-axios template#83
Merged
Merged
Conversation
6c905e2 to
4493236
Compare
mnahkies
commented
Nov 5, 2023
4493236 to
0662375
Compare
f6a8b43 to
8cab6cd
Compare
97848ab to
2ceb67d
Compare
2ceb67d to
88ff2b1
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
new template
typescript-axiosbased on https://github.com/axios/axioscompared to the
typescript-fetchtemplate it's quite "lossy", eg: you don't retain as much information about possible error responses. as we can't type hint possible exceptions I don't see a way to avoid this (short of catching and returning a result type, but this would seem to defeat the purpose of usingaxios)included a couple of scripts using the github api as a test / sample
Documentation
Publish Alpha
Some dog fooding has been done, but not as much as the fetch template yet. Likely to some rough edges that will need to be fixed forward.
Testing
Alpha version published as: