Skip to content

Commit af9812d

Browse files
Fix create-change-log.ts type issue
1 parent 0ac40bd commit af9812d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev-tools/src/create-change-log.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ interface Release {
4646
// Utils
4747

4848
const githubFetch = async <T>(url: string): Promise<T> => {
49-
const response: GithubResponse<T> = await fetch(url, {headers: {Authorization: "Basic a3l1cmlkZW5hbWlkYTpCYW5uYmFzMTI="}})
50-
.then(response => response.json());
49+
const response = await fetch(url, {headers: {Authorization: "Basic a3l1cmlkZW5hbWlkYTpCYW5uYmFzMTI="}})
50+
.then(response => response.json() as unknown as GithubResponse<T>) ;
5151
if (response.message !== undefined) {
5252
throw Error(`${response.message} ${response.documentation_url}`);
5353
}

0 commit comments

Comments
 (0)