TypeScript/tests/baselines/reference/tsxAttributeResolution2.errors.txt
2015-06-18 14:04:11 -07:00

24 lines
704 B
Plaintext

tests/cases/conformance/jsx/tsxAttributeResolution2.tsx(17,21): error TS2339: Property 'leng' does not exist on type 'string'.
==== tests/cases/conformance/jsx/tsxAttributeResolution2.tsx (1 errors) ====
declare module JSX {
interface Element { }
interface IntrinsicElements {
test1: Attribs1;
}
}
interface Attribs1 {
c1?: (x: string) => void;
}
// OK
<test1 c1={(x) => x.length} />; // OK
<test1 data-c1={(x) => x.leng} />; // OK
// Errors
<test1 c1={(x) => x.leng} />; // Error, no leng on 'string'
~~~~
!!! error TS2339: Property 'leng' does not exist on type 'string'.