A
A
Aleksandr2019-07-30 12:45:32
JavaScript
Aleksandr, 2019-07-30 12:45:32

How to properly document these methods?

I have two functions that are in different files.
In the component:

getPayInfoExtended(obj: any) {
    this.AS.getInfo(this.number).subscribe(res => {
      this.result = res;
    },
      error => {
        console.log(error)
      })
  }

And in the service:
getInfo(obj) {
    return this.http.post(`${this.url}getinfo?`, obj)
  }

I have never used JSDoc until now.
Tell me, how to properly document this code?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question