Fix generation of episodic nodejs for services
- Extending services from the episode must also take the episodes into account
- Remove the reference in the generated ts for imported types since it can't be relative
- Extend the tests
diff --git a/test/Service.thrift b/test/Service.thrift
index 6f4c9c7..9d215f2 100644
--- a/test/Service.thrift
+++ b/test/Service.thrift
@@ -22,3 +22,7 @@
service Service {
Types.Type1 testEpisode(1:Types.Type1 arg)
}
+
+service ExtendedService extends Types.BaseService {
+ Types.Type1 testEpisodeExtend(1:Types.Type1 arg)
+}
\ No newline at end of file
diff --git a/test/Types.thrift b/test/Types.thrift
index 11069d9..00389be 100644
--- a/test/Types.thrift
+++ b/test/Types.thrift
@@ -20,4 +20,8 @@
struct Type1 {
1: i32 number,
2: string message,
+}
+
+service BaseService {
+ Type1 testEpisode(1:Type1 arg)
}
\ No newline at end of file