Skip to content

Commit

Permalink
fix(playground): fix eslint errors in App
Browse files Browse the repository at this point in the history
Replace empty object type with Record<string, never> in editor state
  • Loading branch information
BelfordZ committed Nov 29, 2024
1 parent 1af92a8 commit ddd26bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const App: React.FC = () => {
const [error, setError] = useState<string | undefined>();
const [notification, setNotification] = useState<ISnackBarNotification | undefined>();
const [UISchema, setUISchemaBySection]: [IUISchema, any] = UISchemaStore();
const [editor, setEditor]: [any, Dispatch<{}>] = useState();
const [editor, setEditor]: [any, Dispatch<Record<string, never>>] = useState();
const [horizontalSplit, privateSetHorizontalSplit] = useState(false);
const [parsedSchema, setParsedSchema] = useParsedSchema(
defaultValue ? JSON.parse(defaultValue) : null,
Expand Down

0 comments on commit ddd26bb

Please sign in to comment.