Skip to content

Commit

Permalink
Merge pull request #104 from rmarscher/bun-types-reference-dom
Browse files Browse the repository at this point in the history
Add dom ts lib reference
  • Loading branch information
timothymiller authored Nov 7, 2023
2 parents ee798dd + 52113a1 commit 4d8f4ab
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions apps/next/bun-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />

// This is required because bun-types currently removes the libs defined in the tsconfig
// https://github.com/oven-sh/bun/issues/5134
5 changes: 5 additions & 0 deletions packages/app/bun-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />

// This is required because bun-types currently removes the libs defined in the tsconfig
// https://github.com/oven-sh/bun/issues/5134
1 change: 0 additions & 1 deletion packages/app/utils/supabase/cookies.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DEFAULT_COOKIE_OPTIONS } from '@supabase/auth-helpers-shared'

export function getCookieValue(cookieName: string): string | undefined {
// @ts-ignore
const cookieString = document.cookie
const cookieNameLength = cookieName.length
const cookies = cookieString.split(';')
Expand Down
5 changes: 5 additions & 0 deletions packages/ui/bun-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />

// This is required because bun-types currently removes the libs defined in the tsconfig
// https://github.com/oven-sh/bun/issues/5134

1 comment on commit 4d8f4ab

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔ EAS production build completed

  • 🤖 Android build failed ❌
  • 🍏 IOS build failed ❌
Android QR IOS QR

Please sign in to comment.