Skip to content

Update markdown renderer for class as return type #75

Description

@bodia-uz

We need to update the renderer for the class as a function return type.
Source example:

interface ClockConstructor {
  new (hour: number, minute: number): any;
  tick(): string;
}

interface ClockInterface {
  tick(): any;
}

/**
* get clock class
* @returns clock class
* @doc UI
*/
function getClockClass(): ClockConstructor {
  class Clock implements ClockInterface {
    constructor(h: number, m: number) {}
    tick() {
        console.log("beep beep");
    }
  }
  
  return Clock;
}

related to 8570515 and #59

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions