pull/2774/head
bunsenstraat 3 years ago
parent 6a33ed762e
commit bafa896944
  1. 4
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -109,7 +109,7 @@ export interface EditorUIProps {
clearDecorationsByPlugin: (filePath: string, plugin: string, typeOfDecoration: string, registeredDecorations: any, currentDecorations: any) => DecorationsReturn
keepDecorationsFor: (filePath: string, plugin: string, typeOfDecoration: string, registeredDecorations: any, currentDecorations: any) => DecorationsReturn
addErrorMarker: (errors: []) => void
clearErrorMarkers: (sources: any) => void
clearErrorMarkers: (sources: string[] | {[fileName: string]: any}) => void
}
}
@ -440,7 +440,7 @@ export const EditorUI = (props: EditorUIProps) => {
}
}
props.editorAPI.clearErrorMarkers = async (sources: any) => {
props.editorAPI.clearErrorMarkers = async (sources: string[] | {[fileName: string]: any}) => {
if (sources) {
for (const source of (Array.isArray(sources) ? sources : Object.keys(sources))) {
const filePath = source

Loading…
Cancel
Save