File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1177,10 +1177,15 @@ module Emit =
1177
1177
Pt.Printl " declare var %s : {new (%s ): %s ; };" nc.Name ( ParamsToString ncParams) i.Name)
1178
1178
1179
1179
let EmitInterfaceDeclaration ( i : Browser.Interface ) =
1180
+ let getConflict iName = Map.tryFind iName extendConflictsBaseTypes;
1180
1181
let processIName iName =
1181
- match Map.tryFind iName extendConflictsBaseTypes with
1182
+ match getConflict iName with
1182
1183
| Some _ -> iName + " Base"
1183
1184
| _ -> iName
1185
+ let processExtendIName iName =
1186
+ match getConflict iName with
1187
+ | Some conflict -> if List.contains i.Name conflict.ExtendType then iName + " Base" else iName
1188
+ | _ -> iName
1184
1189
1185
1190
let processedIName = processIName i.Name
1186
1191
if processedIName <> i.Name then
@@ -1205,7 +1210,7 @@ module Emit =
1205
1210
else
1206
1211
overridenExtendsFromJson
1207
1212
1208
- combinedExtends |> List.map processIName
1213
+ combinedExtends |> List.map processExtendIName
1209
1214
1210
1215
match finalExtends with
1211
1216
| [] -> ()
You can’t perform that action at this time.
0 commit comments