Skip to content

Add AbstractClass type#559

Merged
sindresorhus merged 4 commits into
sindresorhus:mainfrom
rayrw:add-abstract-class-type
Mar 11, 2023
Merged

Add AbstractClass type#559
sindresorhus merged 4 commits into
sindresorhus:mainfrom
rayrw:add-abstract-class-type

Conversation

@rayrw

@rayrw rayrw commented Feb 28, 2023

Copy link
Copy Markdown
Contributor

Fixes #374

This PR adds a generic type AbstractClass<T> together with AbstractConstructor<T>.

The test is mostly inspire by the official documentation of abstract construct signatures

@sindresorhus
sindresorhus merged commit 9b12767 into sindresorhus:main Mar 11, 2023
@sindresorhus

Copy link
Copy Markdown
Owner

Thanks :)

orimiles5 pushed a commit to orimiles5/type-fest that referenced this pull request Mar 11, 2023
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

Successfully merging this pull request may close these issues.

Add AbstractClass<T>

2 participants