MCPcopy Index your code
hub / github.com/nodejs/node / isTypeUsableAsPropertyName

Function isTypeUsableAsPropertyName

test/fixtures/snapshot/typescript.js:57670–57672  ·  view source on GitHub ↗

* Indicates whether a type can be used as a property name.

(type)

Source from the content-addressed store, hash-verified

57668 * Indicates whether a type can be used as a property name.
57669 */
57670 function isTypeUsableAsPropertyName(type) {
57671 return !!(type.flags & 8576 /* TypeFlags.StringOrNumberLiteralOrUnique */);
57672 }
57673 /**
57674 * Indicates whether a declaration name is definitely late-bindable.
57675 * A declaration name is only late-bindable if:

Calls

no outgoing calls

Tested by

no test coverage detected