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

Function createTypeFromGenericGlobalType

test/fixtures/snapshot/typescript.js:60785–60787  ·  view source on GitHub ↗

* Instantiates a global type that is generic with some element type, and returns that instantiation.

(genericGlobalType, typeArguments)

Source from the content-addressed store, hash-verified

60783 * Instantiates a global type that is generic with some element type, and returns that instantiation.
60784 */
60785 function createTypeFromGenericGlobalType(genericGlobalType, typeArguments) {
60786 return genericGlobalType !== emptyGenericType ? createTypeReference(genericGlobalType, typeArguments) : emptyObjectType;
60787 }
60788 function createTypedPropertyDescriptorType(propertyType) {
60789 return createTypeFromGenericGlobalType(getGlobalTypedPropertyDescriptorType(), [propertyType]);
60790 }

Callers 5

createIterableTypeFunction · 0.85
createArrayTypeFunction · 0.85
initializeTypeCheckerFunction · 0.85

Calls 1

createTypeReferenceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…