DEV Community

loading...

Discussion on: Language Features: Best and Worst

vberlier profile image
Valentin Berlier

In js you would use decorators, which are native langage features:

class Invitation {
  @Serialize({ json: 'invitationToken', db: 'invitation_token' })
  token
}
Forem Open with the Forem app