Skip to content

Allow custom DECL TypeScript definition string #55

@CinchBlue

Description

@CinchBlue

Sometimes your type might look like this:

pub struct Color {
  r: i8,
  g: i8,
  b: i8,
}

but you want a custom serde impl + string representation in TypeScript:

// So it can look like #abcdef
export type Color = `#${string}{string}{string}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions