Skip to content

Commit

Permalink
feat: add TypeScript generation
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Feb 22, 2023
1 parent 17f884c commit 27cc397
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Local testing requires more work to implement for each language, so not all lang
| Rust | :white_check_mark: | Not yet |
| Java | :white_check_mark: | Not yet |
| JavaScript | :white_check_mark: | Not yet |
| TypeScript | :white_check_mark: | Not yet |
| PHP | :white_check_mark: | Not yet |
| C | :white_check_mark: | Not yet |
| C# | :white_check_mark: | Not yet |
Expand Down
1 change: 1 addition & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
| Rust | :white_check_mark: | Not yet |
| Java | :white_check_mark: | Not yet |
| JavaScript | :white_check_mark: | Not yet |
| TypeScript | :white_check_mark: | Not yet |
| PHP | :white_check_mark: | Not yet |
| C | :white_check_mark: | Not yet |
| C# | :white_check_mark: | Not yet |
Expand Down
12 changes: 11 additions & 1 deletion lang/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ var (
blockCommentStart: "/*",
blockCommentEnd: "*/",
}
tsGen = baseLang{
name: "TypeScript",
slug: "typescript",
shortName: "ts",
extension: ".ts",
lineComment: "//",
blockCommentStart: "/*",
blockCommentEnd: "*/",
}
phpGen = baseLang{
name: "PHP",
slug: "php",
Expand Down Expand Up @@ -149,14 +158,15 @@ var (
blockCommentStart: ">>COMMENT",
blockCommentEnd: "\nCOMMENT",
}
// TODO scala, typescript, erlang, dart, racket
// TODO scala, erlang, dart, racket, Elixir
SupportedLangs = []Lang{
golangGen,
python3Gen,
cppGen,
rustGen,
javaGen,
jsGen,
tsGen,
phpGen,
cGen,
csharpGen,
Expand Down

0 comments on commit 27cc397

Please sign in to comment.