Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

Improve typing of static methods #6

Open
LPGhatguy opened this issue May 29, 2016 · 0 comments
Open

Improve typing of static methods #6

LPGhatguy opened this issue May 29, 2016 · 0 comments

Comments

@LPGhatguy
Copy link
Owner

Right now, static methods like $for don't inherit the same helpful typing constraints as the default Component constructor because static methods can't reference class type constraints.

Additionally, $for always returns an object of type Component instead of this because of microsoft/TypeScript#5863.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant