├── .github └── workflows │ └── on-pull-request.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE_APACHE ├── LICENSE_MIT ├── README.md ├── src └── lib.rs ├── test.sh ├── tests-e2e ├── README.md ├── build_all.sh ├── reference_output │ ├── compare_output.sh │ ├── test1 │ │ └── test1.d.ts │ ├── test2 │ │ └── test2.d.ts │ ├── test3 │ │ └── test3.d.ts │ ├── test4 │ │ └── test4.d.ts │ ├── test5 │ │ └── test5.d.ts │ └── test_range1 │ │ └── test_range1.d.ts ├── test1 │ ├── Cargo.toml │ └── entry_point.rs ├── test2 │ ├── Cargo.toml │ └── entry_point.rs ├── test3 │ ├── Cargo.toml │ └── entry_point.rs ├── test4 │ ├── Cargo.toml │ └── entry_point.rs ├── test5 │ ├── Cargo.toml │ └── entry_point.rs └── test_range1 │ ├── Cargo.toml │ └── entry_point.rs ├── tests ├── affixes.rs ├── enum.rs ├── expand │ ├── borrow.expanded.rs │ ├── borrow.rs │ ├── generic_enum.expanded.rs │ ├── generic_enum.rs │ ├── generic_struct.expanded.rs │ ├── generic_struct.rs │ ├── type_alias.expanded.rs │ └── type_alias.rs ├── expandtest.rs ├── flatten.rs ├── generics.rs ├── optional.rs ├── options.rs ├── reference_rename.rs ├── rename.rs ├── skip.rs ├── struct.rs ├── transparent.rs ├── type_override.rs └── wasm.rs └── tsify-macros ├── Cargo.toml └── src ├── attrs.rs ├── comments.rs ├── container.rs ├── decl.rs ├── derive.rs ├── error_tracker.rs ├── lib.rs ├── parser.rs ├── type_alias.rs ├── typescript ├── basic.rs ├── mod.rs ├── ts_type.rs ├── ts_type.test.rs ├── ts_type_display.rs └── ts_type_from_name.rs └── wasm_bindgen.rs /.github/workflows/on-pull-request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/.github/workflows/on-pull-request.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock 3 | .vscode 4 | tests-e2e/*/pkg -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE_APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/LICENSE_APACHE -------------------------------------------------------------------------------- /LICENSE_MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/LICENSE_MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/README.md -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/src/lib.rs -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/test.sh -------------------------------------------------------------------------------- /tests-e2e/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/README.md -------------------------------------------------------------------------------- /tests-e2e/build_all.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/build_all.sh -------------------------------------------------------------------------------- /tests-e2e/reference_output/compare_output.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/reference_output/compare_output.sh -------------------------------------------------------------------------------- /tests-e2e/reference_output/test1/test1.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/reference_output/test1/test1.d.ts -------------------------------------------------------------------------------- /tests-e2e/reference_output/test2/test2.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/reference_output/test2/test2.d.ts -------------------------------------------------------------------------------- /tests-e2e/reference_output/test3/test3.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/reference_output/test3/test3.d.ts -------------------------------------------------------------------------------- /tests-e2e/reference_output/test4/test4.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/reference_output/test4/test4.d.ts -------------------------------------------------------------------------------- /tests-e2e/reference_output/test5/test5.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/reference_output/test5/test5.d.ts -------------------------------------------------------------------------------- /tests-e2e/reference_output/test_range1/test_range1.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/reference_output/test_range1/test_range1.d.ts -------------------------------------------------------------------------------- /tests-e2e/test1/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test1/Cargo.toml -------------------------------------------------------------------------------- /tests-e2e/test1/entry_point.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test1/entry_point.rs -------------------------------------------------------------------------------- /tests-e2e/test2/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test2/Cargo.toml -------------------------------------------------------------------------------- /tests-e2e/test2/entry_point.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test2/entry_point.rs -------------------------------------------------------------------------------- /tests-e2e/test3/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test3/Cargo.toml -------------------------------------------------------------------------------- /tests-e2e/test3/entry_point.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test3/entry_point.rs -------------------------------------------------------------------------------- /tests-e2e/test4/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test4/Cargo.toml -------------------------------------------------------------------------------- /tests-e2e/test4/entry_point.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test4/entry_point.rs -------------------------------------------------------------------------------- /tests-e2e/test5/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test5/Cargo.toml -------------------------------------------------------------------------------- /tests-e2e/test5/entry_point.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test5/entry_point.rs -------------------------------------------------------------------------------- /tests-e2e/test_range1/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test_range1/Cargo.toml -------------------------------------------------------------------------------- /tests-e2e/test_range1/entry_point.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests-e2e/test_range1/entry_point.rs -------------------------------------------------------------------------------- /tests/affixes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/affixes.rs -------------------------------------------------------------------------------- /tests/enum.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/enum.rs -------------------------------------------------------------------------------- /tests/expand/borrow.expanded.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expand/borrow.expanded.rs -------------------------------------------------------------------------------- /tests/expand/borrow.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expand/borrow.rs -------------------------------------------------------------------------------- /tests/expand/generic_enum.expanded.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expand/generic_enum.expanded.rs -------------------------------------------------------------------------------- /tests/expand/generic_enum.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expand/generic_enum.rs -------------------------------------------------------------------------------- /tests/expand/generic_struct.expanded.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expand/generic_struct.expanded.rs -------------------------------------------------------------------------------- /tests/expand/generic_struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expand/generic_struct.rs -------------------------------------------------------------------------------- /tests/expand/type_alias.expanded.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expand/type_alias.expanded.rs -------------------------------------------------------------------------------- /tests/expand/type_alias.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expand/type_alias.rs -------------------------------------------------------------------------------- /tests/expandtest.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/expandtest.rs -------------------------------------------------------------------------------- /tests/flatten.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/flatten.rs -------------------------------------------------------------------------------- /tests/generics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/generics.rs -------------------------------------------------------------------------------- /tests/optional.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/optional.rs -------------------------------------------------------------------------------- /tests/options.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/options.rs -------------------------------------------------------------------------------- /tests/reference_rename.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/reference_rename.rs -------------------------------------------------------------------------------- /tests/rename.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/rename.rs -------------------------------------------------------------------------------- /tests/skip.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/skip.rs -------------------------------------------------------------------------------- /tests/struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/struct.rs -------------------------------------------------------------------------------- /tests/transparent.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/transparent.rs -------------------------------------------------------------------------------- /tests/type_override.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/type_override.rs -------------------------------------------------------------------------------- /tests/wasm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tests/wasm.rs -------------------------------------------------------------------------------- /tsify-macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/Cargo.toml -------------------------------------------------------------------------------- /tsify-macros/src/attrs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/attrs.rs -------------------------------------------------------------------------------- /tsify-macros/src/comments.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/comments.rs -------------------------------------------------------------------------------- /tsify-macros/src/container.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/container.rs -------------------------------------------------------------------------------- /tsify-macros/src/decl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/decl.rs -------------------------------------------------------------------------------- /tsify-macros/src/derive.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/derive.rs -------------------------------------------------------------------------------- /tsify-macros/src/error_tracker.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/error_tracker.rs -------------------------------------------------------------------------------- /tsify-macros/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/lib.rs -------------------------------------------------------------------------------- /tsify-macros/src/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/parser.rs -------------------------------------------------------------------------------- /tsify-macros/src/type_alias.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/type_alias.rs -------------------------------------------------------------------------------- /tsify-macros/src/typescript/basic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/typescript/basic.rs -------------------------------------------------------------------------------- /tsify-macros/src/typescript/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/typescript/mod.rs -------------------------------------------------------------------------------- /tsify-macros/src/typescript/ts_type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/typescript/ts_type.rs -------------------------------------------------------------------------------- /tsify-macros/src/typescript/ts_type.test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/typescript/ts_type.test.rs -------------------------------------------------------------------------------- /tsify-macros/src/typescript/ts_type_display.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/typescript/ts_type_display.rs -------------------------------------------------------------------------------- /tsify-macros/src/typescript/ts_type_from_name.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/typescript/ts_type_from_name.rs -------------------------------------------------------------------------------- /tsify-macros/src/wasm_bindgen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madonoharu/tsify/HEAD/tsify-macros/src/wasm_bindgen.rs --------------------------------------------------------------------------------