Skip to content

Commit 021fa13

Browse files
authored
Merge pull request #463 from Gasol/optional-picture-url-in-group-summary
Make pictureUrl optional in GroupSummaryResponse
2 parents d833bff + 2571d3f commit 021fa13

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/exceptions.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
export class SignatureValidationFailed extends Error {
2-
constructor(message: string, public signature?: string) {
2+
constructor(
3+
message: string,
4+
public signature?: string,
5+
) {
36
super(message);
47
}
58
}
69

710
export class JSONParseError extends Error {
8-
constructor(message: string, public raw: any) {
11+
constructor(
12+
message: string,
13+
public raw: any,
14+
) {
915
super(message);
1016
}
1117
}

lib/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2839,12 +2839,12 @@ export type VerifyIDToken = {
28392839
/**
28402840
* Response body of get group summary.
28412841
*
2842-
* @see [Get group summary](https://developers.line.biz/ja/reference/messaging-api/#get-group-summary)
2842+
* @see [Get group summary](https://developers.line.biz/en/reference/messaging-api/#get-group-summary)
28432843
*/
28442844
export type GroupSummaryResponse = {
28452845
groupId: string;
28462846
groupName: string;
2847-
pictureUrl: string;
2847+
pictureUrl?: string;
28482848
};
28492849

28502850
/**

0 commit comments

Comments
 (0)