improve options interface

This commit is contained in:
Philipp Kühn
2021-02-10 18:25:08 +01:00
parent 55ff908423
commit 215c26748b
33 changed files with 68 additions and 67 deletions

View File

@@ -7,10 +7,10 @@ export interface DropcursorOptions {
class: string | null,
}
export const Dropcursor = Extension.create({
export const Dropcursor = Extension.create<DropcursorOptions>({
name: 'dropCursor',
defaultOptions: <DropcursorOptions>{
defaultOptions: {
color: 'black',
width: 1,
class: null,