Merge pull request #75 from pipi-lv/amEditor-fs

modify ts error
This commit is contained in:
YiYang 2022-01-17 19:36:12 +08:00 committed by GitHub
commit d7ba171cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ export type GroupItemProps =
groups: Array<
Omit<CollapseGroupProps, 'items'> & {
items: Array<
Omit<CollapseItemProps, 'engine'> | 'string'
Omit<CollapseItemProps, 'engine'> | string
>;
}
>;

View File

@ -5,7 +5,7 @@ import CollapseItem, { CollapseItemProps } from './item';
export type CollapseGroupProps = {
engine?: EngineInterface;
title?: React.ReactNode;
items: Array<Omit<CollapseItemProps, 'engine'>>;
items: Array<Omit<CollapseItemProps, 'engine'> | string>;
onSelect?: (event: React.MouseEvent, name: string) => void | boolean;
};