mirror of
https://github.com/xazukx/ts-rs.git
synced 2026-11-18 22:30:26 +00:00
don't import types from the same file when using export!
This commit is contained in:
+1
-3
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user