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

Revert "Revert "TypeScript Improvement: Use [key: string]: unknown, not [key: string]: any (#3565)""

This reverts commit 81d2f9bb8f.
This commit is contained in:
CameronAckermanSEL
2020-05-04 17:38:14 -07:00
parent 036ee664af
commit d82ffe49a5
17 changed files with 42 additions and 38 deletions

View File

@@ -5,7 +5,7 @@ Slate works with pure JSON objects. All it requires is that those JSON objects c
```ts
interface Text {
text: string
[key: string]: any
[key: string]: unknown
}
```
@@ -22,7 +22,7 @@ To take another example, the `Element` node interface in Slate is:
```ts
interface Element {
children: Node[]
[key: string]: any
[key: string]: unknown
}
```