diff --git a/ts/src/main/scala/org/scalablytyped/converter/internal/ts/transforms/LibrarySpecific.scala b/ts/src/main/scala/org/scalablytyped/converter/internal/ts/transforms/LibrarySpecific.scala index 5ded25b232..8f737c0cb7 100644 --- a/ts/src/main/scala/org/scalablytyped/converter/internal/ts/transforms/LibrarySpecific.scala +++ b/ts/src/main/scala/org/scalablytyped/converter/internal/ts/transforms/LibrarySpecific.scala @@ -7,6 +7,17 @@ object LibrarySpecific { val libName: TsIdentLibrary } + object std extends Named { + override val libName = TsIdentLibrarySimple("std") + + override def enterTsDecl(t: TsTreeScope)(x: TsDecl): TsDecl = + x match { + case i @ TsDeclInterface(_, _, TsIdentSimple("HTMLCollectionOf"), _, _, _, _) => + i.copy(inheritance = Empty) + case other => other + } + } + object styledComponents extends Named { override val libName = TsIdentLibrarySimple("styled-components") @@ -197,7 +208,7 @@ object LibrarySpecific { } val patches: Map[TsIdentLibrary, Named] = - IArray(atUifabricFoundation, aMap, emberPolyfills, emotion, react, semanticUiReact, styledComponents) + IArray(atUifabricFoundation, aMap, emberPolyfills, emotion, react, semanticUiReact, std, styledComponents) .map(x => x.libName -> x) .toMap