(type, isProperty)
| 67632 | getUnionType([type, undefinedType, nullType]); |
| 67633 | } |
| 67634 | function getOptionalType(type, isProperty) { |
| 67635 | if (isProperty === void 0) { isProperty = false; } |
| 67636 | ts.Debug.assert(strictNullChecks); |
| 67637 | return type.flags & 32768 /* TypeFlags.Undefined */ ? type : getUnionType([type, isProperty ? missingType : undefinedType]); |
| 67638 | } |
| 67639 | function getGlobalNonNullableTypeInstantiation(type) { |
| 67640 | // First reduce away any constituents that are assignable to 'undefined' or 'null'. This not only eliminates |
| 67641 | // 'undefined' and 'null', but also higher-order types such as a type parameter 'U extends undefined | null' |
no test coverage detected
searching dependent graphs…