good first issue
Description
Steps to reproduce:
- Change moduleResolution to
node16ornodenextin tsconfig.json
Expected behavior:
Type is correct
Screenshots:
'use client'
import EditorJS from '@editorjs/editorjs'
import { useCallback, useRef } from 'react'
export const Editor = () => {
const editorRef = useRef<EditorJS.default | null>(null)
return <div ref={useCallback((ref: HTMLDivElement | null) => {
if (ref) {
editorRef.current = new EditorJS({
holder: ref
})
} else {
editorRef.current?.destroy()
}
}, [])}
/>
}
Device, Browser, OS:
Editor.js version: latest
Plugins you use with their versions: