-
Notifications
You must be signed in to change notification settings - Fork 536
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
Explicitly export members of fluidRouter to workaround Typescript issue #5056
Conversation
// So we export the explicit members as a workaround: | ||
// https://github.com/microsoft/TypeScript/issues/18877#issuecomment-476921038 | ||
export { | ||
IRequest, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder whether we can just export by name the one sthat we would augment by name and the rest can still be export *?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can with some eslint-disables, either way seems fine to me:
export {
// eslint-disable-next-line import/export
IRequestHeader,
} from "./fluidRouter";
// eslint-disable-next-line import/export
export * from "./fluidRouter";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably prefer the current approach personally, but happy to change if you'd like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/azp run Build - client packages |
Azure Pipelines successfully started running 1 pipeline(s). |
…ue (microsoft#5056) When downstream customers augment the IRequestHeader, the [index: string]: any; signature is lost and they end up with "property does not exist" errors. This change uses this workaround to resolve the issue: microsoft/TypeScript#18877 (comment)
…ue (#5056) (#5063) When downstream customers augment the IRequestHeader, the [index: string]: any; signature is lost and they end up with "property does not exist" errors. This change uses this workaround to resolve the issue: microsoft/TypeScript#18877 (comment)
When downstream customers augment the
IRequestHeader
, the[index: string]: any;
signature is lost and they end up with "property does not exist" errors.This change uses this workaround to resolve the issue:
microsoft/TypeScript#18877 (comment)