You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a typescript error when I try to implement an initialize method in my dataSource
So either the doc is wrong or the type for this method is missing in the index.d.ts.
I am a typescript newbie so I don't really know the good way to fix it. Should the initialize method be define in you index.d.ts ?
Does this error is normal and I should ensure the method exist before calling it ?
I can do a PR if we agree on the good way to do this
The text was updated successfully, but these errors were encountered:
Thanks for reporting! MongoDataSource's initialize function is always defined, so you shouldn't need to check. Adding to index.d.ts would be great, thanks ☺️
I have a typescript error when I try to implement an initialize method in my dataSource
So either the doc is wrong or the type for this method is missing in the index.d.ts.
I am a typescript newbie so I don't really know the good way to fix it. Should the initialize method be define in you index.d.ts ?
Does this error is normal and I should ensure the method exist before calling it ?
I can do a PR if we agree on the good way to do this
The text was updated successfully, but these errors were encountered: