fix(striker-ui): relocate Message(s) types

main
Tsu-ba-me 1 year ago
parent da491ab814
commit 41055cc626
  1. 2
      striker-ui/components/MessageGroup.tsx
  2. 5
      striker-ui/types/Message.d.ts

@ -170,6 +170,6 @@ const MessageGroup = forwardRef<
MessageGroup.defaultProps = MESSAGE_GROUP_DEFAULT_PROPS; MessageGroup.defaultProps = MESSAGE_GROUP_DEFAULT_PROPS;
MessageGroup.displayName = 'MessageGroup'; MessageGroup.displayName = 'MessageGroup';
export type { MessageGroupForwardedRefContent, Messages }; export type { MessageGroupForwardedRefContent };
export default MessageGroup; export default MessageGroup;

@ -0,0 +1,5 @@
type Message = import('../components/MessageBox').Message;
type Messages = {
[messageKey: string]: Message;
};
Loading…
Cancel
Save