8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
any
unknown
1 parent 3ecf48a commit 17b5cacCopy full SHA for 17b5cac
docs/types/freshness.md
@@ -59,7 +59,7 @@ The reason why only object literals are type checked this way is because in this
59
A type can include an index signature to explicitly indicate that excess properties are permitted:
60
61
```ts
62
-var x: { foo: number, [x: string]: any };
+var x: { foo: number, [x: string]: unknown };
63
x = { foo: 1, baz: 2 }; // Ok, `baz` matched by index signature
64
```
65
0 commit comments