Skip to content

Add ValueModule as a valid object literal type, as they are immutable#19090

Merged
weswigham merged 2 commits intomicrosoft:masterfrom
weswigham:inferred-indexer-on-namespace-import
Oct 11, 2017
Merged

Add ValueModule as a valid object literal type, as they are immutable#19090
weswigham merged 2 commits intomicrosoft:masterfrom
weswigham:inferred-indexer-on-namespace-import

Conversation

@weswigham
Copy link
Copy Markdown
Member

Fixes #17622

@weswigham weswigham requested review from a user, RyanCavanaugh and mhegazy October 11, 2017 00:50
* Return true if type was inferred from an object literal, written as an object type literal, or is the shape of a module
* with no call or construct signatures.
*/
function isObjectLiteralType(type: Type) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This function could use a rename

@weswigham weswigham merged commit b949245 into microsoft:master Oct 11, 2017
@weswigham weswigham deleted the inferred-indexer-on-namespace-import branch October 11, 2017 22:13
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant