focusreactive / headless-cms-yaml-input

headless-cms-yaml-input.vercel.app
7 stars 4 forks source link

"merge" and "ref" properties are not listed in EditorProps interface #7

Open wccbuck opened 9 months ago

wccbuck commented 9 months ago

index.d.ts:

interface EditorProps {
  json?: {};
  text?: string;
  onChange?: (value: { json: {}; text: string }) => void;
  onError?: (error: {}) => void;
  theme?: any;
}
declare const YamlEditor: (props: EditorProps) => JSX.Element;
export default YamlEditor;

The optional properties "merge" and "ref" need to be added to EditorProps.