Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Conversation

arodionov
Copy link
Contributor

No description provided.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants