Skip to content

Fails if a class is using itself as argument in a method #2

Description

@JanFellner

If you have a class that uses itself in a function as argument it´s not adopting the name of that argument:

class myobject {
	public compare(other: myobject): boolean {
		return true;
	}
}

current output:

export interface Imyobject {
    compare(other: myobject): boolean;
}

expected output:

export interface Imyobject {
    compare(other: Imyobject): boolean;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions