diff --git a/types/global.d.ts b/types/global.d.ts index 693ebf6b6..801973827 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -36,8 +36,8 @@ declare namespace Line { export type EventSource = User | Group | Room; export type User = Typed & { userId: string }; - export type Group = Typed & { groupId: string }; - export type Room = Typed & { roomId: string }; + export type Group = Typed & { groupId: string, userId?: string }; + export type Room = Typed & { roomId: string, userId?: string }; export type ReplyableEvent = EventBase & { replyToken: string };