mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 09:59:48 +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:
17
packages/slate-hyperscript/test/fixtures/element-custom.tsx
vendored
Normal file
17
packages/slate-hyperscript/test/fixtures/element-custom.tsx
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/** @jsx jsx */
|
||||
import { createHyperscript } from 'slate-hyperscript'
|
||||
|
||||
const jsx = createHyperscript({
|
||||
elements: {
|
||||
paragraph: { type: 'paragraph' },
|
||||
},
|
||||
})
|
||||
export const input = <paragraph>word</paragraph>
|
||||
export const output = {
|
||||
type: 'paragraph',
|
||||
children: [
|
||||
{
|
||||
text: 'word',
|
||||
},
|
||||
],
|
||||
}
|
Reference in New Issue
Block a user