Skip to content
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

[event-hubs] add downleveled types #8654

Merged
merged 3 commits into from
May 1, 2020
Merged

Conversation

chradek
Copy link
Contributor

@chradek chradek commented May 1, 2020

Part of #8275

Also updates the package version to 5.2.0 since the sendBatch operation had an additive API change.

Comment on lines +39 to +40
"types/latest/",
"types/3.1/",
Copy link
Member

@HarshaNalluru HarshaNalluru May 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just came across this..
image
Seems like your current change fixes it.

But we might have missed it in the other packages..

"types/latest/core-amqp.d.ts",

"types/latest/service-bus.d.ts",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, we should log an issue to add those, and maybe also see what impact that has on our docs. I'm betting that TypeDoc either doesn't need it or doesn't use it. I see some other packages like keyvault also only include the bundled types and not the metadata.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting, this seems to be used to by api-extractor so that when it's parsing a package and needs to look at a dependency's types, it can know what dialect of tsdoc was used in the dependency:
microsoft/tsdoc#7

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #8662 to track.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for logging.

@@ -35,6 +35,6 @@
"resolveJsonModule": true
},
"compileOnSave": true,
"exclude": ["node_modules", "typings/**", "./samples/**/*.ts"],
"exclude": ["node_modules", "types/**", "./samples/**/*.ts"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be another tsconfig.json file under samples folder which excludes typings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, updated!

@chradek chradek merged commit 3ecb8d6 into Azure:master May 1, 2020
@chradek chradek deleted the eh-downlevel-types branch May 1, 2020 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants