Skip to content

Commit

Permalink
Merge pull request #261 from betwixt-labs/ts-codegen-fix
Browse files Browse the repository at this point in the history
codegen(ts): ensure 'MethodType' import is written
  • Loading branch information
andrewmd5 authored May 26, 2023
2 parents 6f00b5c + 3ef90bf commit 27c4b66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION="2.7.0"
VERSION="2.7.1"
MAJOR=2
MINOR=7
PATCH=0
PATCH=1
2 changes: 1 addition & 1 deletion Core/Generators/TypeScript/TypeScriptGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ public override string Compile(Version? languageVersion, TempoServices services
builder.AppendLine("import { BebopView, BebopRuntimeError, BebopRecord } from \"bebop\";");
if (Schema.Definitions.Values.OfType<ServiceDefinition>().Any())
{
builder.AppendLine("import { Metadata, MethodType } from \"@tempojs/common\";");
if (services is TempoServices.Client or TempoServices.Both)
{
builder.AppendLine("import { Metadata, MethodType } from \"@tempojs/common\";");
builder.AppendLine("import { BaseClient, MethodInfo, CallOptions } from \"@tempojs/client\";");
}
if (services is TempoServices.Server or TempoServices.Both)
Expand Down

0 comments on commit 27c4b66

Please sign in to comment.