You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -75,9 +75,11 @@ Then add this plugin in `tsconfig.json`.
75
75
76
76
### paths (required)
77
77
78
+
Value: `string[]`
79
+
78
80
Specify directory in relative path to the project's root (`tsconfig.json`'s dir). All `.ts` or `.js` files in the directories can be Namespace Imported with auto-completion.
79
81
80
-
example:
82
+
Example:
81
83
82
84
```json
83
85
"options": {
@@ -87,13 +89,32 @@ example:
87
89
88
90
### ignoreNamedExport
89
91
92
+
Value: `boolean`
93
+
90
94
If true, named export from files in `paths` won't be shown in auto-completion.
91
95
92
-
example:
96
+
Example:
93
97
94
98
```json
95
99
"options": {
96
100
"paths": ["src/logics"],
97
101
"ignoreNamedExport": true
98
102
}
99
103
```
104
+
105
+
### nameTransform
106
+
107
+
Value: `"upperCamelCase" | "lowerCamelCase"`
108
+
109
+
Transform import name. If not set, the filename will be used as an import name.
110
+
111
+
Example:
112
+
113
+
```json
114
+
"options": {
115
+
"paths": ["src/logics"],
116
+
"nameTransform": "lowerCamelCase"
117
+
}
118
+
```
119
+
120
+
Then `SomeLogic.ts` will be imported like `import * as someLogic from "./SomeLogic"`.
0 commit comments