SPeCS Packages Documentation
    Preparing search index...
    • Generates a functional interface based on a method of a class.

      Parameters

      • targetMethod: string

        The name of the target method.

      • targetClass: string = ".*"

        The name of the target class (optional).

      • targetFile: string = ".*"

        The name of the target file (optional).

      • associate: boolean = false

        Whether to associate the interface with the class (optional).

      • newFile: boolean = true

        Whether to create the interface in a new file (optional).

      Returns {
          $defaultMethod: Method;
          $function: Method;
          $interface: InterfaceType;
          targetMethodName: string;
      }

      The generated functional interface and related information.