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

document typescript usage #310

Merged
merged 4 commits into from
Sep 25, 2024
Merged

document typescript usage #310

merged 4 commits into from
Sep 25, 2024

Conversation

zeke
Copy link
Member

@zeke zeke commented Sep 24, 2024

I was using the Replicate client in a TypeScript project with an aggressive linter today, and it wasn't immediately obvious to me how to specify the types.

This PR adds a bit of documentation to the README that shows how to import the types ESM-style, and how to use them in a real-world example.

tidy up example

Co-Authored-By: Charlie Gleason <[email protected]>
@zeke zeke force-pushed the document-typescript-usage branch from 57eb175 to e15b397 Compare September 24, 2024 20:15
Copy link
Contributor

@superhighfives superhighfives left a comment

Choose a reason for hiding this comment

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

This looks great—thanks for taking the time to write it up, @zeke! 👍

zeke and others added 3 commits September 24, 2024 15:20
@zeke
Copy link
Member Author

zeke commented Sep 24, 2024

Thanks for the fixes, @erbridge 🩷

@aron aron merged commit af9d6e2 into main Sep 25, 2024
19 checks passed
@aron aron deleted the document-typescript-usage branch September 25, 2024 08:17
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.

4 participants