react-monaco-editor
react-monaco-editor copied to clipboard
line prop as defined in README does not exist in code anymore
Describe the bug You can not use the "line" prop on at least the DiffEditor even though it is defined in the README
To Reproduce Create a DiffEditor component and try passing in the "line" prop as so:
` <DiffEditor original={selectedEvent.prev_content} theme={"vs-dark"} modified={selectedEvent.content} options={{ renderSideBySide: false, codeLens: true, colorDecorators: true }} onMount={onMount} language={file_extensions_dictionary[file_extension] ?? "text"} line={5} // raises TS error: "Property 'line' does not exist on type 'IntrinsicAttributes & DiffEditorProps & { children?: // ReactNode; }'."
/> `
Expected behavior The ability to use the line number prop or its removal from the docs.