TypeScript/tests/cases/conformance/types/intersection
Nathan Shively-Sanders d572dcb272
Fix crash intersecting dynamic import w/esModuleInterop (#40249)
* Fix crash intersecting dynamic import w/esModuleInterop

The dynamic import shim creates a symbol without some properties that
the intersection-creating code assumes are present as of #38673.

This PR adds the smallest possible set of properties to avoid the crash.
I'm not sure what others would be good to add.

* Use symbol's declarations instead

* Fix getResolvedMembersOrExportsOfSymbol instead

* comment from code review
2020-09-01 09:10:36 -07:00
..
commonTypeIntersection.ts
contextualIntersectionType.ts
intersectionAndUnionTypes.ts
intersectionAsWeakTypeSource.ts
intersectionMemberOfUnionNarrowsCorrectly.ts
intersectionOfUnionOfUnitTypes.ts
intersectionReduction.ts Perform intersection reduction before and after getApparentType (#38565) 2020-05-13 20:57:17 -07:00
intersectionReductionStrict.ts Reduce intersections by discriminants (#36696) 2020-02-28 17:06:44 -08:00
intersectionsAndEmptyObjects.ts Fix crash intersecting dynamic import w/esModuleInterop (#40249) 2020-09-01 09:10:36 -07:00
intersectionThisTypes.ts
intersectionTypeAssignment.ts
intersectionTypeEquivalence.ts
intersectionTypeInference.ts
intersectionTypeInference2.ts
intersectionTypeInference3.ts
intersectionTypeMembers.ts
intersectionTypeOverloading.ts
intersectionTypeReadonly.ts
intersectionWithIndexSignatures.ts
intersectionWithUnionConstraint.ts
operatorsAndIntersectionTypes.ts
recursiveIntersectionTypes.ts