|
| 1 | +//// [tests/cases/compiler/callableConstructorUnionMetadata.ts] //// |
| 2 | + |
| 3 | +=== callableConstructorUnionMetadata.ts === |
| 4 | +type Component<Props> = ((props: Props) => number) | (new (props: Props) => object); |
| 5 | +>Component : Symbol(Component, Decl(callableConstructorUnionMetadata.ts, 0, 0)) |
| 6 | +>Props : Symbol(Props, Decl(callableConstructorUnionMetadata.ts, 0, 15)) |
| 7 | +>props : Symbol(props, Decl(callableConstructorUnionMetadata.ts, 0, 26)) |
| 8 | +>Props : Symbol(Props, Decl(callableConstructorUnionMetadata.ts, 0, 15)) |
| 9 | +>props : Symbol(props, Decl(callableConstructorUnionMetadata.ts, 0, 59)) |
| 10 | +>Props : Symbol(Props, Decl(callableConstructorUnionMetadata.ts, 0, 15)) |
| 11 | + |
| 12 | +type Field<Props> = Component<Props> & { testIds?: {} }; |
| 13 | +>Field : Symbol(Field, Decl(callableConstructorUnionMetadata.ts, 0, 84)) |
| 14 | +>Props : Symbol(Props, Decl(callableConstructorUnionMetadata.ts, 1, 11)) |
| 15 | +>Component : Symbol(Component, Decl(callableConstructorUnionMetadata.ts, 0, 0)) |
| 16 | +>Props : Symbol(Props, Decl(callableConstructorUnionMetadata.ts, 1, 11)) |
| 17 | +>testIds : Symbol(testIds, Decl(callableConstructorUnionMetadata.ts, 1, 40)) |
| 18 | + |
| 19 | +declare const component: <Props>(props: Props) => number; |
| 20 | +>component : Symbol(component, Decl(callableConstructorUnionMetadata.ts, 3, 13)) |
| 21 | +>Props : Symbol(Props, Decl(callableConstructorUnionMetadata.ts, 3, 26)) |
| 22 | +>props : Symbol(props, Decl(callableConstructorUnionMetadata.ts, 3, 33)) |
| 23 | +>Props : Symbol(Props, Decl(callableConstructorUnionMetadata.ts, 3, 26)) |
| 24 | + |
| 25 | +const field: Field<string> = component; |
| 26 | +>field : Symbol(field, Decl(callableConstructorUnionMetadata.ts, 4, 5)) |
| 27 | +>Field : Symbol(Field, Decl(callableConstructorUnionMetadata.ts, 0, 84)) |
| 28 | +>component : Symbol(component, Decl(callableConstructorUnionMetadata.ts, 3, 13)) |
| 29 | + |
0 commit comments