joarwilk / flowgen

Generate flowtype definition files from TypeScript
Other
657 stars 87 forks source link

docs: replace deprecated Utility Types as of Flow 0.155 #174

Closed mrv1k closed 2 years ago

mrv1k commented 2 years ago

WARNING: $PropertyType is deprecated as of Flow version 0.155, and will be removed in a future version of Flow. Use Indexed Access Types instead. $PropertyType<T, 'k'> is now T['k'].

https://flow.org/en/docs/types/utilities/#toc-propertytype

mrv1k commented 2 years ago

Same goes for $ElementType<T, K> but that changes involves slightly more changes. I'll update and submit the PR later this week.

mrv1k commented 2 years ago

Doc update would be confusing without the appropriate source code update. Don't have the time to contribute right now.