-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad typing of children of AzureMapDataSourceProvider #72
Comments
Hi @Deathrage |
@Deathrage Please check 0.1.4 version i check if that resolve your issue |
According to the package json I have 0.1.4 but |
In 0.1.4 we have:
|
@Deathrage please remove all |
Types was updated. Close ticket |
Hi @psrednicki, I installed this package last week using I've tried removing all node_modules and re-installing with no success. Is the npm package aligned with the tagged version 0.1.4 on github? I note that the version tagged 0.1.4 zip file from github has the updated types file, but the one I get from npm is still the old types file. It's strange because package.json says that it is 0.1.4, but the types file seems to be the 0.1.3 version. Thanks |
Hi @psrednicki, further to above, I downloaded the package from: https://registry.npmjs.org/react-azure-maps/-/react-azure-maps-0.1.4.tgz I extracted it and have confirmed that the types file doesn't appear to have been updated. |
Hi @bgransden, |
Yes, I know it's in the github repo, but it hasn't made it into the package on npm for whatever reason. Repro:
Alternatively download the .tgz directly from npm using link above, then extract it, and you'll notice that types.d.ts is still the old version. Perhaps you forgot to save the file before publishing to npm but saved before pushing to github? I don't know why it's different, or how to publish to npm, I just know that types.d.ts is different on npm package to github |
Hi @psrednicki , I can confirm that npm version 0.1.4 does work correctly if I make the change as per github version 0.1.4, i.e. this #74 Are you able to re-publish the npm package so the types file is current version? Please :) |
@bgransden I republished package. |
As mentioned in Azure/react-azure-maps-playground#40
The aforementioned contains rendering of array of markers. However children type of
AzureMapDataSourceProvider
does not take array as children thuswill cause TypeError.
The type of props is:
where
children?: Array<IAzureDataSourceChildren | null> | IAzureDataSourceChildren | null;
does not allow array as children. The proper type isArray<IAzureDataSourceChildren | Array<IAzureDataSourceChildren> | null>
and not justArray<IAzureDataSourceChildren | null>
.The text was updated successfully, but these errors were encountered: