1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 09:59:48 +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:
Maria Jaramillo
2020-07-14 12:47:47 -05:00
committed by GitHub
parent 97dbab13a8
commit 93fe251517
890 changed files with 43 additions and 3230 deletions

View File

@@ -0,0 +1,19 @@
/** @jsx jsx */
import { Editor } from 'slate'
import { jsx } from '../..'
export const run = editor => {
editor.insertBreak()
}
export const input = (
<editor>
<block>
<block>
on
<cursor />e
</block>
<block>two</block>
</block>
</editor>
)
export const output = input