Skip to content

Use both TS and JS for code snippets #23249

@vicb

Description

@vicb

Existing documentation URL(s)

  • /src/content/docs/workflows/get-started/cli-quick-start.mdx
  • /src/content/partials/hyperdrive/use-mysql-to-make-query.mdx
  • ... (many other locations)

What changes are you suggesting?

Many of our code snippets are TS only. It would be great to also have JS.

It should be enough to enclose snippets in <TypescriptExample>, see #23248 for an example.

Note:

  • There are places where we explicitly use both JS and TS using <Tabs> - those could be simplified too
  • There are also places where only JS is used, we should probably update that too but not as simple (need to add types)

Additional information

/cc @ranbel

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions