Skip to content

Commit

Permalink
chore(types): return mapped type for splitProps excluded other value
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFoxPro committed Dec 22, 2023
1 parent 51c9485 commit 802019c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/solid/src/render/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export type SplitProps<T, K extends (readonly (keyof T)[])[]> = [
? Pick<T, Extract<K[P], readonly (keyof T)[]>[number]>
: never;
},
Omit<T, K[number][number]>
{ [P in keyof T as Exclude<P, K[number][number]>]: T[P] }
];

export function splitProps<
Expand Down

0 comments on commit 802019c

Please sign in to comment.