@@ -101,8 +101,12 @@ declare class Bar<T> {
101
101
}
102
102
export { Bar } ;
103
103
//// [usage.d.ts]
104
- export declare const x : import ( "./foo" ) ;
105
- export declare let y : import ( "./foo2" ) . Bar . I ;
104
+ export declare const x : import ( "./foo" ) < {
105
+ x : number ;
106
+ } > ;
107
+ export declare let y : import ( "./foo2" ) . Bar . I < {
108
+ x : number ;
109
+ } > ;
106
110
export declare class Bar2 < T > {
107
111
item : {
108
112
a: string ;
@@ -113,59 +117,3 @@ export declare class Bar2<T> {
113
117
constructor ( input ? : any ) ;
114
118
}
115
119
export declare let shim : typeof import ( "./foo2" ) ;
116
-
117
-
118
- //// [DtsFileErrors]
119
-
120
-
121
- tests / cases / conformance / types / import / u s a g e .d .t s ( 1 , 2 5 ) : e r r o r T S 2 3 1 4 : G e n e r i c t y p e ' P o i n t < T > ' r e q u i r e s 1 t y p e a r g u m e n t ( s ) .
122
- tests / cases / conformance / types / import / u s a g e .d .t s ( 2 , 2 3 ) : e r r o r T S 2 3 1 4 : G e n e r i c t y p e ' I < T > ' r e q u i r e s 1 t y p e a r g u m e n t ( s ) .
123
-
124
-
125
- === = tests / cases / conformance / types / import / f o o .d .t s ( 0 e r r o r s ) = = = =
126
- interface Point < T > {
127
- x : number ;
128
- y: number ;
129
- data: T ;
130
- }
131
- export = Point ;
132
-
133
- = === tests / cases / conformance / types / import / f o o 2 .d .t s ( 0 e r r o r s ) = = = =
134
- declare namespace Bar {
135
- interface I < T > {
136
- a : string ;
137
- b : number ;
138
- data : T ;
139
- }
140
- }
141
- export declare namespace Baz {
142
- interface J < T > {
143
- a : number ;
144
- b : string ;
145
- data : T ;
146
- }
147
- }
148
- declare class Bar< T > {
149
- item : Bar . I < T > ;
150
- constructor ( input : Baz . J < T > ) ;
151
- }
152
- export { Bar } ;
153
-
154
- ==== tests/cases/conformance/types/import/usage.d.ts (2 errors) ====
155
- export declare const x: import("./foo");
156
- ~~~~~~~~~~~~~~~
157
- !!! error TS2314: Generic type 'Point< T > ' requires 1 type argument(s).
158
- export declare let y: import("./foo2").Bar.I;
159
- ~~~~~~~~~~~~~~~~~~~~~~
160
- !!! error TS2314: Generic type 'I< T > ' requires 1 type argument(s).
161
- export declare class Bar2< T > {
162
- item : {
163
- a : string ;
164
- b : number ;
165
- c : object ;
166
- data : T ;
167
- } ;
168
- constructor ( input ? : any ) ;
169
- }
170
- export declare let shim: typeof import("./foo2");
171
-
0 commit comments