0
  • Several packages have multiple classes with methods that have an argument called p.
  • I want to document p.
  • I can't document the type of p because the type is built-in (e.g. Map[String, String]).

How to document p?

class A {
    def (p: Map[String, String]): Unit = {}
}

class B {
    def (p: Map[String, String], ...): Unit = {}  
}

1 Answers1

2

I think you are looking for type aliases:

/** Some doc for P type */
type MyPType = Map[String, String]

def someMethod(p: MyPType) = ...
Gaël J
  • 11,274
  • 4
  • 17
  • 32