diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..e193223 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,7 @@ +export interface EditorProps { + value?: string | (() => string); + class?: string; + onchange?: (val: string) => void; +} + +export const Editor: (props: EditorProps) => HTMLElement; \ No newline at end of file