Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JanFellner opened this issue Sep 4, 2019 · 0 comments
Open

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

JanFellner opened this issue Sep 4, 2019 · 0 comments

Comments

@JanFellner
Copy link

JanFellner commented Sep 4, 2019

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant