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

Tsify lib/shorteners #4504

Merged
merged 2 commits into from
Dec 28, 2022
Merged

Tsify lib/shorteners #4504

merged 2 commits into from
Dec 28, 2022

Conversation

jeremy-rifkin
Copy link
Member

No description provided.

if (!err && resp.statusCode === 200) {
res.send({url: body});
} else {
res.status(resp.statusCode).send(resp.error);
res.status(resp.statusCode).send('Tinyurl error');
Copy link
Member Author

Choose a reason for hiding this comment

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

resp.error isn't a thing according to the types

Copy link
Member

@mattgodbolt mattgodbolt left a comment

Choose a reason for hiding this comment

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

LGTM! thanks

@jeremy-rifkin jeremy-rifkin merged commit 92b17d2 into main Dec 28, 2022
@jeremy-rifkin jeremy-rifkin deleted the jr/tsify-shorteners branch December 28, 2022 17:18
mattgodbolt pushed a commit that referenced this pull request Jan 4, 2023
* Convert lib/shorteners to ts

* Improved types
mattgodbolt pushed a commit that referenced this pull request Jan 24, 2023
* Convert lib/shorteners to ts

* Improved types
moha-gh added a commit to moha-gh/compiler-explorer that referenced this pull request Jul 19, 2023
The file has been converted to a TypeScript module in compiler-explorer#4504 and the link to it                      
in README.md has not been updated then. Fix that.
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.

None yet

2 participants