Skip to content

Commit

Permalink
Fix typecheck error accessing window.twttr
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwarden authored and mergify[bot] committed Oct 14, 2024
1 parent eb47874 commit 4c8e019
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/components/building-blocks/embedded-integration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ import { useEffect, useRef, useState } from 'react'
import { isValidTweetUrl } from '#app/utils/twitter-utils.ts'
import { Icon } from '../ui/icon.tsx'

declare global {
interface Window {
twttr?: {
widgets: {
load: () => void
}
}
}
}

interface OEmbedResponse {
html: string
// Add other properties if needed
Expand Down

0 comments on commit 4c8e019

Please sign in to comment.