File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/routes/reference/reactive-utilities Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import { splitProps } from "solid-js";
2929function splitProps<T extends Record <string , unknown >>(
3030 props : T ,
3131 ... keys : (readonly (keyof T )[])[]
32- ): Record < string , unknown >[] ;
32+ ): SplitProps < T , typeof keys > ;
3333```
3434
3535## Parameters
@@ -48,14 +48,14 @@ Arrays of keys that determine each returned subset.
4848
4949## Return value
5050
51- - ** Type:** ` Record<string, unknown>[] `
51+ - ** Type:** ` SplitProps<T, typeof keys> `
5252
53- Returns one reactive object for each key array and a final object containing keys not assigned to any earlier group .
53+ Returns a tuple of reactive subsets followed by a reactive remainder object .
5454
5555## Behavior
5656
5757- Each returned object preserves reactive property access.
58- - Keys are assigned to the first matching group.
58+ - A key is assigned to the first matching group only .
5959- The last returned object contains keys not included in the provided key arrays.
6060- When the source props object is proxy-backed, the returned objects use proxy-backed property access.
6161
You can’t perform that action at this time.
0 commit comments