mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 10:51:44 +02:00
Convert Slate tests to TypeScript (#3784)
* changed to tsx * slate tests * finished making typescript tests * linting * linting * reverted slate-hyperscript files to jsx and changed edlint config * removed extra file * Update package.json * Update package.json * deleted { file * changed to tsx * slate tests * finished making typescript tests * linting * linting * reverted slate-hyperscript files to jsx and changed edlint config * removed extra file * Update package.json * Update package.json * deleted { file * rebase * removed ~ files * changed yarn
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
/** @jsx jsx */
|
||||
|
||||
import { Editor } from 'slate'
|
||||
import { jsx } from '../..'
|
||||
|
||||
export const run = editor => {
|
||||
editor.insertBreak()
|
||||
}
|
||||
|
||||
export const input = (
|
||||
<editor>
|
||||
<block>
|
||||
@@ -18,5 +16,4 @@ export const input = (
|
||||
</block>
|
||||
</editor>
|
||||
)
|
||||
|
||||
export const output = input
|
Reference in New Issue
Block a user