mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 02:49:56 +02:00
Revert "Revert "TypeScript Improvement: Use [key: string]: unknown
, not [key: string]: any
(#3565)""
This reverts commit 81d2f9bb8f
.
This commit is contained in:
@@ -55,7 +55,7 @@ Elements make up the middle layers of a richtext document. They are the nodes th
|
||||
```ts
|
||||
interface Element {
|
||||
children: Node[]
|
||||
[key: string]: any
|
||||
[key: string]: unknown
|
||||
}
|
||||
```
|
||||
|
||||
@@ -126,7 +126,7 @@ Text nodes are the lowest-level nodes in the tree, containing the text content o
|
||||
```ts
|
||||
interface Text {
|
||||
text: string
|
||||
[key: string]: any
|
||||
[key: string]: unknown
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user