1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 21:51:51 +02:00

Merge TypeScript types from master into main

This commit is contained in:
Sunny Hirai
2020-11-27 16:31:16 -08:00
74 changed files with 3410 additions and 3414 deletions

View File

@@ -237,7 +237,7 @@ export function createEditor(
const selection: Partial<Range> = {}
const editor = makeEditor()
Object.assign(editor, attributes)
editor.children = descendants
editor.children = descendants as Element[]
// Search the document's texts to see if any of them have tokens associated
// that need incorporated into the selection.

View File

@@ -0,0 +1,6 @@
// This allows tests to include Slate Nodes written in JSX without TypeScript complaining.
declare namespace jsx.JSX {
interface IntrinsicElements {
[elemName: string]: any // eslint-disable-line
}
}