Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

372
Views
What does the @ symbol mean in TypeScript (or possibly Vue/JavaScript)?

I am learning TypeScript and Vue.js.

I have come across a Vue theme that starts with @ on many lines.

What does it do exactly? Is this TypeScript, Javascript or Vue thing?

For example, in one of the Vue store module TypeScript files it looks like this (some code removed for brevity):

@Module
export default class BodyModule extends VuexModule implements StoreInfo {
  classes = {};

  @Mutation
  [Mutations.SET_CLASSNAME_BY_POSITION](payload) {
    const { position, className } = payload;
    if (!this.classes[position]) {
      this.classes[position] = [];
    }
    this.classes[position].push(className);
  }

  @Action
  [Actions.ADD_BODY_CLASSNAME](className) {
    document.body.classList.add(className);
  }

}

Many of those lines such as @Module, @Mutation, and @Action start with with the @ symbol.

I have not seen this many times before.

What does it do exactly?

It looks like a comment of sorts to me. If that is the case, why not use // instead?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!