Skip to content

Commit d346b08

Browse files
authored
Updated default Typescript version to 4.9.3 (#10)
1 parent 8ed5a9d commit d346b08

File tree

3 files changed

+174494
-2
lines changed

3 files changed

+174494
-2
lines changed

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"github.com/clarkmcc/go-typescript/utils"
77
"github.com/clarkmcc/go-typescript/versions"
8-
_ "github.com/clarkmcc/go-typescript/versions/v4.7.2"
8+
_ "github.com/clarkmcc/go-typescript/versions/v4.9.3"
99
"github.com/dop251/goja"
1010
)
1111

@@ -60,7 +60,7 @@ func NewDefaultConfig() *Config {
6060
return &Config{
6161
Runtime: goja.New(),
6262
CompileOptions: nil,
63-
TypescriptSource: versions.DefaultRegistry.MustGet("v4.7.2"),
63+
TypescriptSource: versions.DefaultRegistry.MustGet("v4.9.3"),
6464
ModuleName: "default",
6565
}
6666
}

versions/v4.9.3/loader.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package v4_9_3
2+
3+
import (
4+
_ "embed"
5+
"github.com/clarkmcc/go-typescript/versions"
6+
)
7+
8+
//go:embed v4.9.3.js
9+
var Source string
10+
11+
func init() {
12+
versions.DefaultRegistry.MustRegister("v4.9.3", Source)
13+
}

0 commit comments

Comments
 (0)