We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac40bd commit af9812dCopy full SHA for af9812d
dev-tools/src/create-change-log.ts
@@ -46,8 +46,8 @@ interface Release {
46
// Utils
47
48
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());
+ const response = await fetch(url, {headers: {Authorization: "Basic a3l1cmlkZW5hbWlkYTpCYW5uYmFzMTI="}})
+ .then(response => response.json() as unknown as GithubResponse<T>) ;
51
if (response.message !== undefined) {
52
throw Error(`${response.message} ${response.documentation_url}`);
53
}
0 commit comments