TypeScript/tests/cases/compiler/spreadIntersectionJsx.tsx
Nathan Shively-Sanders bef1f9e87f call isValidSpreadType in createJsxAttributesTypeFromAttributesProperty
Previously, it only check for object and any types. This was the old
check, so this change updates it to use isValidSpreadType.
2017-02-16 10:41:35 -08:00

7 lines
136 B
TypeScript

// @jsx: react
const React: any = null;
class A { a; }
class C { c; }
let intersected: A & C;
let element = <div { ...intersected } />;