fix(striker-ui): remove redundant "extends unknown" in list

main
Tsu-ba-me 11 months ago
parent 64c1b80adb
commit 3dcc2ba0c5
  1. 4
      striker-ui/types/List.d.ts

@ -5,7 +5,7 @@ type ListItemButtonChangeEventHandler = Exclude<
undefined
>;
type ListOptionalProps<T extends unknown = unknown> = {
type ListOptionalProps<T = unknown> = {
allowAddItem?: boolean;
allowCheckAll?: boolean;
allowCheckItem?: boolean;
@ -46,4 +46,4 @@ type ListOptionalProps<T extends unknown = unknown> = {
scroll?: boolean;
};
type ListProps<T extends unknown = unknown> = ListOptionalProps<T>;
type ListProps<T = unknown> = ListOptionalProps<T>;

Loading…
Cancel
Save