Skip to content

Commit

Permalink
Use default import mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
spinillos committed Jul 25, 2023
1 parent 33693e0 commit abb9f0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions encoding/typescript/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ func GenerateTypes(sch thema.Schema, cfg *TypeConfig) (*ast.File, error) {
}
if cfg.CuetsyConfig == nil {
cfg.CuetsyConfig = &cuetsy.Config{
ImportMapper: func(_ string) (string, error) {
return "", nil
},
Export: true,
ImportMapper: cuetsy.IgnoreImportMapper,
Export: true,
}
}
if cfg.RootName == "" {
Expand Down
1 change: 0 additions & 1 deletion encoding/typescript/ts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func TestGenerate(t *testing.T) {
name: "nilcfg",
cfg: nil,
},
{},
}

for _, tb := range table {
Expand Down

0 comments on commit abb9f0a

Please sign in to comment.