Skip to content

⬅️ Back to Table of Contents

📄 method-param-default.ts

📊 Analysis Summary

Metric Count
🔧 Functions 1
🧱 Classes 1

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/tests/fixtures/class/declaration/method-param-default.ts

Functions

A.openPort(printerName: any): this

Code
openPort(printerName = this.printerName) {
    this.tscOcx.ActiveXopenport(printerName);

    return this;
  }
  • Parameters:
  • printerName: any
  • Return Type: this
  • Calls:
  • this.tscOcx.ActiveXopenport

Classes

A

Class Code
class A {
  constructor(printName) {
    this.printName = printName;
  }

  openPort(printerName = this.printerName) {
    this.tscOcx.ActiveXopenport(printerName);

    return this;
  }
}

Methods

openPort(printerName: any): this
Code
openPort(printerName = this.printerName) {
    this.tscOcx.ActiveXopenport(printerName);

    return this;
  }