4
4
//// { "dependencies": { "@types/classnames": "*" } }
5
5
6
6
// @filename : /tsconfig.json
7
- //// {
8
- //// "compilerOptions": {
9
- //// "module": "esnext",
10
- //// "target": "es2015",
11
- //// "esModuleInterop": true,
12
- //// "allowSyntheticDefaultImports": true
13
- //// }
14
- //// }
7
+ //// {}
15
8
16
9
// @filename : /node_modules/@types/classnames/package.json
17
10
//// { "name": "@types/classnames", "types": "index.d.ts" }
18
11
19
12
// @filename : /node_modules/@types/classnames/index.d.ts
20
- //// declare const classNames = () => string;
13
+ //// declare const classNames: () => string;
21
14
//// export = classNames;
15
+ //// export as namespace classNames;
22
16
23
17
// @filename : /SomeReactComponent.tsx
24
18
//// import * as React from 'react';
25
19
////
26
- //// const el = <div className={class/*0*/}>foo</div>;
27
- //// const el = <div className={classNames/*1*/}>foo</div>;
20
+ //// const el1 = <div className={class/*1*/}>foo</div>;
28
21
29
- goTo . marker ( "0 " ) ;
22
+ goTo . marker ( "1 " ) ;
30
23
31
24
verify . completions ( {
32
25
includes : [ {
@@ -39,14 +32,3 @@ verify.completions({
39
32
includeCompletionsForModuleExports : true ,
40
33
}
41
34
} ) ;
42
-
43
- goTo . marker ( "1" ) ;
44
-
45
- format . setOption ( "newLineCharacter" , "\n" ) ;
46
- verify . importFixAtPosition ( [
47
- `import classNames from 'classnames';
48
- import * as React from 'react';
49
-
50
- const el = <div className={class}>foo</div>;
51
- const el = <div className={classNames}>foo</div>;`
52
- ] ) ;
0 commit comments