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

Implemented support for ConstructSignature #141

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

arodionov
Copy link
Contributor

No description provided.

@arodionov arodionov requested a review from OlegDokuka November 11, 2024 12:30
rewriteRun(
//language=typescript
typeScript(`
interface Constructible {
new? (name: string, age: number): Person; // Interface that defines a constructor signature
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not we keep that test as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because it doesn't construct signature, it is the same as test

interface X {
                    find ? <R, T> (v1: R, v2: T): string;
                }

@arodionov arodionov requested a review from OlegDokuka November 12, 2024 12:19
@arodionov arodionov self-assigned this Nov 12, 2024
@arodionov arodionov merged commit ac916bb into main Nov 13, 2024
2 checks passed
@arodionov arodionov deleted the construct-signature-support branch November 13, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants