5.2.0 and TypeScript #145
luigigorlero
started this conversation in
General
Replies: 1 comment
-
Fixed in #146 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After
5.2.0
, all my requests that usegetItems
, which I have been writing like so:now issue a TypeScript warning. If i want to access any property, I get the ominous
property does not exist
since the variable is now a union typeconst articles: DirectusItems<Article> | Article[]
instead of simplyArticle[]
What are your best practices in this regard?
Beta Was this translation helpful? Give feedback.
All reactions