Thanks to visit codestin.com
Credit goes to github.com

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

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.

1 participant