specta icon indicating copy to clipboard operation
specta copied to clipboard

Missing generic parameter in Typescript binding when using `#[serde(transparent)]`

Open regexident opened this issue 1 year ago • 0 comments

#[derive(Clone, Debug, Serialize, specta::Type)]
#[serde(transparent)]
pub struct Dummy<Value> {
    pub value: Value,
}

Expected:

export type DummyDto<Value> = Value

Actual:

export type DummyDto = Value

regexident avatar Dec 20 '24 12:12 regexident