Skip to content

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

Merged
Wesley Wigham (weswigham) merged 2 commits into
microsoft:masterfrom
weswigham:inferred-indexer-on-namespace-import
Oct 11, 2017
Merged

Wesley Wigham (weswigham) merged 2 commits into
microsoft:masterfrom
weswigham:inferred-indexer-on-namespace-import

Conversation

@weswigham

Copy link
Copy Markdown
Member

Fixes #17622

Comment thread src/compiler/checker.ts Outdated
* 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
Wesley Wigham (weswigham) merged commit b949245 into microsoft:master Oct 11, 2017
@weswigham
Wesley Wigham (weswigham) deleted the inferred-indexer-on-namespace-import branch October 11, 2017 22:13
@microsoft 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