1

Are dual constructors allowed in typescript?

export class Userdetails {
  private username: string = null;

  constructor (details: user) {
    this.username = details.username;
  }

  constructor () {
  }

  myOtherFunc(){}
}
Gary
  • 2,293
  • 2
  • 25
  • 47

0 Answers0