google / google/playground-elements

Support a global TypeScript / JavaScript switch

Open
#29 4 comments 0 reactions 0 assignees View on GitHub
Needs Discussion
Dominant language
TypeScript
Stars
648
Forks
61
PR merge metrics
No merged PRs in 30d

Description

We'd like to enable users to choose their preferred language for samples.

The most obvious way to do this would be to let samples include both .ts and .js versions of the same file, and just special case filtering out the other files. This would make it impossible to mix .ts and .js in a single sample though. We could also use another attribute for this, or nest files into another structure.

```html

...
...

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.