Skip to content

Commit ad3cd90

Browse files
committed
update
1 parent ff496a5 commit ad3cd90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/routes/reference/reactive-utilities/split-props.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { splitProps } from "solid-js";
2929
function 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

0 commit comments

Comments
 (0)