rust-typescript-type-def icon indicating copy to clipboard operation
rust-typescript-type-def copied to clipboard

Generate TypeScript type definitions for Rust types.

Results 6 rust-typescript-type-def issues
Sort by recently updated
recently updated
newest added

Hi, thanks for the crate and feel free to close if out of scope. This crate fails when dealing with circular references. Example: ```rust #[derive(TypeDef)] enum SelfRef { One(u32), Many(Vec),...

The `namespaces` syntax was causing [Vite](https://vite.dev) to fail to compile. I changed the emitter to generate `declare module` syntax instead and now Vite is happy. The import syntax in my...

Because of the Rust orphan rule, it's difficult to use this crate to define types for other libraries. Doing so requires using newtypes, which can be cumbersome. It would be...

I need to be able to define custom bounds, exactly like `#[serde(bounds)]`. E.g.: ```rust trait EntityKind { type KeyKind; } #[derive(serde::Serialize, typescript_type_def::TypeDef)] pub struct EntityKey { some_accessory_field: usize, kind: Kind,...

Using serde_repr for (de)serializing C style enums currently doesn't work. The generated enums are string unions. Is it possible to add a feature for serde_repr so it (de)serializes the enums...

By lacking support for `#[serde(untagged)]` attributes on individual enum variants the crate fails to support a common pattern for modeling string-based enums: ```typescript type Kind = "foo" | "bar" |...