84f5aa540e
* Add ncie deep elaborations * Nice stuff * Modify tuple error to use length error mroe often * Accept good baselines * Accept meh baselines * Fix literal types * Calculate elaborations like it was the very first time again~ * Use tristate for enum relationship to ensure elaborations are printed at least once * Update message text, nits * move some functions back to where they were * Add test of deep JSX elaboration * Add elaboration test with parenthesized expressions, comma expressions, and assignments * Move check to allow elaborations on more anonymous types * Fix nits * Add specialized error to elaborations of nonliteral computed named-members * Update error message
29 lines
546 B
TypeScript
29 lines
546 B
TypeScript
// @jsx: react
|
|
// @noLib: true
|
|
// @skipLibCheck: true
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
// @Filename: my-component.tsx
|
|
import * as React from 'react'
|
|
|
|
interface MyProps {
|
|
x: string;
|
|
y: MyInnerProps;
|
|
}
|
|
|
|
interface MyInnerProps {
|
|
value: string;
|
|
}
|
|
|
|
export function MyComponent(_props: MyProps) {
|
|
return <span>my component</span>;
|
|
}
|
|
|
|
// @Filename: file1.tsx
|
|
|
|
import * as React from 'react'
|
|
import { MyComponent } from './my-component'
|
|
|
|
export const result = <MyComponent x="yes" y={{
|
|
value: 42
|
|
}} />;
|