Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom DECL TypeScript definition string #55

Open
CinchBlue opened this issue Jul 17, 2024 · 0 comments
Open

Allow custom DECL TypeScript definition string #55

CinchBlue opened this issue Jul 17, 2024 · 0 comments

Comments

@CinchBlue
Copy link

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}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant