Skip to content

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

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

Merged

Conversation

weswigham
Copy link
Member

Fixes #17622

@weswigham weswigham requested review from RyanCavanaugh, mhegazy and a user October 11, 2017 00:50
@@ -10313,11 +10313,11 @@ namespace ts {
}

/**
* Return true if type was inferred from an object literal or written as an object type literal
* 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

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