mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 17:24:02 +02:00
using js-to-ts converter on JSX. (#3906)
Added 'include' parameter to tsconfig to tell the compiler to only look inside the src directory
This commit is contained in:
38
packages/slate-hyperscript/test/fixtures/cursor-element-nested-end.tsx
vendored
Normal file
38
packages/slate-hyperscript/test/fixtures/cursor-element-nested-end.tsx
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/** @jsx jsx */
|
||||
import { jsx } from 'slate-hyperscript'
|
||||
|
||||
export const input = (
|
||||
<editor>
|
||||
<element>
|
||||
<element>
|
||||
word
|
||||
<cursor />
|
||||
</element>
|
||||
</element>
|
||||
</editor>
|
||||
)
|
||||
export const output = {
|
||||
children: [
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [
|
||||
{
|
||||
text: 'word',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
selection: {
|
||||
anchor: {
|
||||
path: [0, 0, 0],
|
||||
offset: 4,
|
||||
},
|
||||
focus: {
|
||||
path: [0, 0, 0],
|
||||
offset: 4,
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user