|
| 1 | +=== tests/cases/compiler/node_modules/react/index.d.ts === |
| 2 | +declare namespace React { |
| 3 | +>React : Symbol(React, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 0)) |
| 4 | + |
| 5 | + export interface DetailedHTMLProps<T, U> {} |
| 6 | +>DetailedHTMLProps : Symbol(DetailedHTMLProps, Decl(index.d.ts, 0, 25)) |
| 7 | +>T : Symbol(T, Decl(index.d.ts, 1, 39)) |
| 8 | +>U : Symbol(U, Decl(index.d.ts, 1, 41)) |
| 9 | + |
| 10 | + export interface HTMLAttributes<T> {} |
| 11 | +>HTMLAttributes : Symbol(HTMLAttributes, Decl(index.d.ts, 1, 47), Decl(index.d.ts, 1, 24)) |
| 12 | +>T : Symbol(T, Decl(index.d.ts, 2, 36), Decl(index.d.ts, 2, 29)) |
| 13 | +} |
| 14 | +export = React; |
| 15 | +>React : Symbol(React, Decl(index.d.ts, 0, 0)) |
| 16 | + |
| 17 | +export as namespace React; |
| 18 | +>React : Symbol(React, Decl(index.d.ts, 4, 15)) |
| 19 | + |
| 20 | +=== tests/cases/compiler/node_modules/create-emotion-styled/types/react/index.d.ts === |
| 21 | +/// <reference types="react" /> |
| 22 | +declare module 'react' { // augment |
| 23 | +>'react' : Symbol(React, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 0)) |
| 24 | + |
| 25 | + interface HTMLAttributes<T> { |
| 26 | +>HTMLAttributes : Symbol(HTMLAttributes, Decl(index.d.ts, 1, 47), Decl(index.d.ts, 1, 24)) |
| 27 | +>T : Symbol(T, Decl(index.d.ts, 2, 36), Decl(index.d.ts, 2, 29)) |
| 28 | + |
| 29 | + css?: unknown; |
| 30 | +>css : Symbol(HTMLAttributes.css, Decl(index.d.ts, 2, 33)) |
| 31 | + } |
| 32 | +} |
| 33 | +export interface StyledOtherComponentList { |
| 34 | +>StyledOtherComponentList : Symbol(StyledOtherComponentList, Decl(index.d.ts, 5, 1)) |
| 35 | + |
| 36 | + "div": React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> |
| 37 | +>"div" : Symbol(StyledOtherComponentList["div"], Decl(index.d.ts, 6, 43)) |
| 38 | +>React : Symbol(React, Decl(index.d.ts, 4, 15)) |
| 39 | +>DetailedHTMLProps : Symbol(DetailedHTMLProps, Decl(index.d.ts, 0, 25)) |
| 40 | +>React : Symbol(React, Decl(index.d.ts, 4, 15)) |
| 41 | +>HTMLAttributes : Symbol(HTMLAttributes, Decl(index.d.ts, 1, 47), Decl(index.d.ts, 1, 24)) |
| 42 | +>HTMLDivElement : Symbol(HTMLDivElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) |
| 43 | +>HTMLDivElement : Symbol(HTMLDivElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) |
| 44 | +} |
| 45 | +export interface StyledOtherComponent<A, B, C> {} |
| 46 | +>StyledOtherComponent : Symbol(StyledOtherComponent, Decl(index.d.ts, 8, 1)) |
| 47 | +>A : Symbol(A, Decl(index.d.ts, 9, 38)) |
| 48 | +>B : Symbol(B, Decl(index.d.ts, 9, 40)) |
| 49 | +>C : Symbol(C, Decl(index.d.ts, 9, 43)) |
| 50 | + |
| 51 | +=== tests/cases/compiler/node_modules/create-emotion-styled/index.d.ts === |
| 52 | +export * from "./types/react"; |
| 53 | +No type information for this code. |
| 54 | +No type information for this code.=== tests/cases/compiler/node_modules/react-emotion/index.d.ts === |
| 55 | +import {StyledOtherComponent, StyledOtherComponentList} from "create-emotion-styled"; |
| 56 | +>StyledOtherComponent : Symbol(StyledOtherComponent, Decl(index.d.ts, 0, 8)) |
| 57 | +>StyledOtherComponentList : Symbol(StyledOtherComponentList, Decl(index.d.ts, 0, 29)) |
| 58 | + |
| 59 | +export default function styled(tag: string): (o: object) => StyledOtherComponent<{}, StyledOtherComponentList["div"], any>; |
| 60 | +>styled : Symbol(styled, Decl(index.d.ts, 0, 85)) |
| 61 | +>tag : Symbol(tag, Decl(index.d.ts, 1, 31)) |
| 62 | +>o : Symbol(o, Decl(index.d.ts, 1, 46)) |
| 63 | +>StyledOtherComponent : Symbol(StyledOtherComponent, Decl(index.d.ts, 0, 8)) |
| 64 | +>StyledOtherComponentList : Symbol(StyledOtherComponentList, Decl(index.d.ts, 0, 29)) |
| 65 | + |
| 66 | +=== tests/cases/compiler/index.ts === |
| 67 | +import styled from "react-emotion" |
| 68 | +>styled : Symbol(styled, Decl(index.ts, 0, 6)) |
| 69 | + |
| 70 | +const Form = styled('div')({ color: "red" }) |
| 71 | +>Form : Symbol(Form, Decl(index.ts, 2, 5)) |
| 72 | +>styled : Symbol(styled, Decl(index.ts, 0, 6)) |
| 73 | +>color : Symbol(color, Decl(index.ts, 2, 28)) |
| 74 | + |
| 75 | +export default Form |
| 76 | +>Form : Symbol(Form, Decl(index.ts, 2, 5)) |
| 77 | + |
0 commit comments