Skip to content

Check if imported file is a proper external module for imported node typings - #4738

Merged
Vladimir Matveev (vladima) merged 4 commits into
masterfrom
properExternalModules
Sep 11, 2015
Merged

Check if imported file is a proper external module for imported node typings#4738
Vladimir Matveev (vladima) merged 4 commits into
masterfrom
properExternalModules

Conversation

@vladima

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/compiler/types.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think this should be declarative. i.e. the name tells you what it is rather than telling you how it should be have. so something like
isExternalLibrary, or isExternalLibraryImport

@mhegazy

Copy link
Copy Markdown
Contributor

also looks like you have build error.

@mhegazy

Copy link
Copy Markdown
Contributor

👍

Vladimir Matveev (vladima) added a commit that referenced this pull request Sep 11, 2015
Check if imported file is a proper external module for imported node typings
@vladima
Vladimir Matveev (vladima) merged commit 026632b into master Sep 11, 2015
@vladima
Vladimir Matveev (vladima) deleted the properExternalModules branch September 11, 2015 17:20
@vladima

Copy link
Copy Markdown
Contributor Author

pinging Basarat Ali Syed (@basarat) and James Brantly (@jbrantly): FYI, this PR has changed the signature of CompilerHost.resolveModuleNames to return ResolvedModule instead of string

@jbrantly

Copy link
Copy Markdown

Thanks for the heads up

@mhegazy Mohamed Hegazy (mhegazy) added the Breaking Change Would introduce errors in existing code label Sep 12, 2015
@mhegazy

Copy link
Copy Markdown
Contributor

Vladimir Matveev (@vladima) can you comment this issue in the API breaking changes page

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It seems like this would be a good case of having the "Please contact the package author to update the package definition." message.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fair point, will update the message. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Breaking Change Would introduce errors in existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants