We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a3ef14 commit 0037c5fCopy full SHA for 0037c5f
jscomp/gentype/Annotation.ml
@@ -1,4 +1,4 @@
1
-type import = {name: string; importPath: ImportPath.t}
+type import = {importPath: ImportPath.t}
2
3
type attributePayload =
4
| BoolPayload of bool
@@ -282,13 +282,8 @@ let sanitizeVariableName name =
282
| c -> c)
283
284
let importFromString importString : import =
285
- let name =
286
- let base = importString |> Filename.basename in
287
- (try base |> Filename.chop_extension with Invalid_argument _ -> base)
288
- |> sanitizeVariableName
289
- in
290
let importPath = ImportPath.fromStringUnsafe importString in
291
- {name; importPath}
+ {importPath}
292
293
let updateConfigForModule ~(config : GenTypeConfig.t) attributes =
294
if attributes |> hasAttribute tagIsGenType then
0 commit comments