Skip to content

Commit a7e01e2

Browse files
committed
Fix type declarations
1 parent 9b7ef83 commit a7e01e2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/playground/website/src/github/git-auth-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function createGitHubAuthHeaders(): (
3737
) => Record<string, string> {
3838
const token = oAuthState.value.token;
3939

40-
return (url: string) => {
40+
return (url: string): Record<string, string> => {
4141
if (!token || !isGitHubUrl(url)) {
4242
return {};
4343
}

packages/playground/website/src/lib/types.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ declare module 'virtual:website-config' {
33
export const remotePlaygroundOrigin: string;
44
export const buildVersion: string;
55
}
6+
7+
// Defined in vite.config.ts
8+
declare module 'virtual:cors-proxy-url' {
9+
export const corsProxyUrl: string;
10+
}

0 commit comments

Comments
 (0)