Skip to content

Commit f9b58b6

Browse files
authored
more strict type constraint
1 parent cab5f26 commit f9b58b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/svelte-component-interface.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ Inside `language-tools`, we already have such a type definition which is used in
5454

5555
```ts
5656
class Svelte2TsxComponent<
57-
Props extends {} = any,
58-
Events extends {} = any,
59-
Slots extends {} = any
57+
Props extends Record<string, any> = any,
58+
Events extends Record<string, any> = any,
59+
Slots extends Record<string, any> = any
6060
> {
6161
// The following three exist for type checking capabilities only
6262
// and do not exist at runtime:

0 commit comments

Comments
 (0)