structstruck icon indicating copy to clipboard operation
structstruck copied to clipboard

Add support for `type` declarations

Open J-Cake opened this issue 1 month ago • 3 comments

Hey, it'd be neat if you could do types with structstruck too. Something like this:

struct UserMap {
    user_id: type UserId = u64,
    contact: struct Contact {
        email: type Email = String,
        phone: type PhoneNumber = String,
    }
}

J-Cake avatar Dec 17 '25 14:12 J-Cake