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

feat(models): make action a generic type #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat(models): make action a generic type #382

wants to merge 1 commit into from

Conversation

valorkin
Copy link

@valorkin valorkin commented Apr 6, 2017

This is not an actual PR, more like proposal for consideration
Typesafe maniac like would be really grateful for strictly typed Action

TS v2.2+ introduces defaults for generic types
so Action<T = any> means Action is generic, but it will be any if type not provided

What do you think?

TS proposal here:
microsoft/TypeScript#2175

This is not an actual PR, more like proposal for consideration
Typesafe maniac like would be really greatful for strictly typed Action

TS v2.2+ introduces defaults for generic types
so `Action<T = any>` means Action is generic, but it will be any if type not provided
@valorkin
Copy link
Author

This feature just landed in ts 2.3

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

Successfully merging this pull request may close these issues.

None yet

1 participant