Skip to content

Conversation

@Oxyjun
Copy link
Contributor

@Oxyjun Oxyjun commented Apr 24, 2025

Summary

  1. Adds type in the code snippets
  2. Uses const instead of let for the variable in the main code.
  3. Uses TypeScriptExample instead of manually having JS code blocks.

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@hyperlint-ai
Copy link
Contributor

hyperlint-ai bot commented Apr 24, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Enhanced code snippets by incorporating type definitions and optimizing variable declarations.

  • Added type definitions in code snippets for better clarity.
  • Replaced 'let' with 'const' for variable declarations to improve code quality.

Modified Files

  • src/content/docs/durable-objects/get-started.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@github-actions github-actions bot added the product:durable-objects Durable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/ label Apr 24, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 24, 2025

@harshil1712 harshil1712 self-requested a review April 24, 2025 16:26
@Oxyjun Oxyjun merged commit da28a11 into production Apr 24, 2025
13 checks passed
@Oxyjun Oxyjun deleted the jun/do/getting-started-code-update branch April 24, 2025 16:42
daisyfaithauma pushed a commit that referenced this pull request May 8, 2025
* Adding types into the code snippets.

* Adding type to Durable Object ID.

* Using TypeScriptExample component

* Renaming chapter title to Getting started.

* Adding type to ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:durable-objects Durable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/ size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants