Skip to content

Commit

Permalink
Replace opts type override with @ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
davc0n committed Sep 9, 2024
1 parent e829d56 commit 8efc366
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/features/ValueEditor/ValueEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ interface Props {
onClear: (clearedIndex: number) => void
}

const editorOptions: Omit<editor.IStandaloneEditorConstructionOptions, 'lightbulb'> & {
lightbulb: {enabled: boolean}
} = {
const editorOptions: editor.IStandaloneEditorConstructionOptions = {
minimap: {enabled: false},
scrollBeyondLastLine: false,
showUnused: false,
Expand All @@ -50,7 +48,10 @@ const editorOptions: Omit<editor.IStandaloneEditorConstructionOptions, 'lightbul
automaticLayout: true,
renderLineHighlight: 'none',
hover: {enabled: false},
lightbulb: {enabled: false},
lightbulb: {
// @ts-expect-error: lightbulb enabled type is wrong
enabled: false
},
}

export const Validation = ({schema, value, index, onChange, onAdd, onRemove, onClear}: Props) => {
Expand Down

0 comments on commit 8efc366

Please sign in to comment.