store icon indicating copy to clipboard operation
store copied to clipboard

feat(models): make action a generic type

Open valorkin opened this issue 8 years ago • 1 comments

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: https://github.com/Microsoft/TypeScript/issues/2175

valorkin avatar Apr 06 '17 14:04 valorkin

This feature just landed in ts 2.3

valorkin avatar Apr 28 '17 02:04 valorkin