don't import types from the same file when using export!

This commit is contained in:
Moritz Bischof
2020-12-20 00:42:43 +01:00
parent 3c34ad6146
commit f6a0bd896a
3 changed files with 7 additions and 5 deletions
+1 -3
View File
@@ -45,11 +45,9 @@ mod export_ts {
}
}
#[derive(TS)]
struct X(Vec<Role>);
// this will export [Role] to `role.ts` and [User] to `user.ts`.
// `export!` will also take care of including imports in typescript files.
export! {
Role => "role.ts",
User, X => "user.ts",
User => "user.ts",
}