Skip to content

Commit 1034fab

Browse files
committed
Merge branch 'main' into dev
2 parents f5a18ed + 4259196 commit 1034fab

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = [ "crates/*" ]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.1.6"
6+
version = "0.1.7"
77
license = "MIT"
88
edition = "2021"
99
repository = "https://github.com/dcodesdev/ts-bind"

crates/macros/src/ts/gen_ts_code.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ pub fn gen_ts_code(
3333

3434
sorter(&mut imports);
3535
for to_import in imports {
36+
// Do not import current interface
37+
if to_import == struct_name {
38+
continue;
39+
}
40+
3641
ts_bind = format!(
3742
"import type {{ {} }} from \"./{}\";\n{}",
3843
to_import, to_import, ts_bind

0 commit comments

Comments
 (0)