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

Function getModifiedReadonlyState

test/fixtures/snapshot/typescript.js:63538–63540  ·  view source on GitHub ↗
(state, modifiers)

Source from the content-addressed store, hash-verified

63536 return instantiateType(getConstraintTypeFromMappedType(type), mapper) === wildcardType ? wildcardType : instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments);
63537 }
63538 function getModifiedReadonlyState(state, modifiers) {
63539 return modifiers & 1 /* MappedTypeModifiers.IncludeReadonly */ ? true : modifiers & 2 /* MappedTypeModifiers.ExcludeReadonly */ ? false : state;
63540 }
63541 function instantiateMappedGenericTupleType(tupleType, mappedType, typeVariable, mapper) {
63542 // When a tuple type is generic (i.e. when it contains variadic elements), we want to eagerly map the
63543 // non-generic elements and defer mapping the generic elements. In order to facilitate this, we transform

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…