Commit 835201a
fix: Make filteredUserAttributes optional on RoktKit.init
`KitInterface.init` declares `userAttributes?: AllUserAttributes`, so callers
may omit it. The override required the param, which violated substitutability
once the kit consumed the SDK's authoritative `KitInterface` types instead of
the looser DT shape. Adding `?` is enough — `Record<string, unknown>` is
already a supertype of `AllUserAttributes` on the value side.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b92e611 commit 835201a
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
1071 | 1072 | | |
1072 | 1073 | | |
1073 | 1074 | | |
1074 | | - | |
| 1075 | + | |
1075 | 1076 | | |
1076 | 1077 | | |
1077 | 1078 | | |
| |||
0 commit comments