NEPTUNE
  • Home
  • Stories
  • Technical
  • Work from home
Subscribe
Tagged

typescript

A collection of 1 post

Overriding getter/setter in TypeScript
typescript

Overriding getter/setter in TypeScript

In contrast to the convention in Java, in TypeScript, we generally don't use getters or setters. We access and set variables directly. However, sometimes it is useful to perform some logic before a variable is set. TypeScript has a very neat feature to achieve that, without the need to refactor

  • Philipp Oliver
Philipp Oliver Aug 24, 2017 • 1 min read
NEPTUNE © 2023
  • Return to main website
Powered by Ghost