Skip to content

Commit

Permalink
fix: ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BjrInt committed Sep 1, 2023
1 parent ecc0739 commit 189e67b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/contexts/helia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const HeliaContext = createContext<HeliaContextType>({
starting: true,
})

export const HeliaProvider = ({ children }: PropsWithChildren<{}>) => {
export const HeliaProvider = ({ children }: PropsWithChildren<object>) => {
const [helia, setHelia] = useState<null | Helia>(null)
const [fs, setFs] = useState<null | UnixFS>(null)
const [starting, setStarting] = useState<boolean>(true)
Expand All @@ -34,8 +34,8 @@ export const HeliaProvider = ({ children }: PropsWithChildren<{}>) => {
console.info('helia already started')
} else if (window.helia) {
console.info('found a windowed instance of helia, populating ...')
setHelia(window.helia)
setFs(unixfs(helia))
setHelia(window.helia as unknown as Helia)
setFs(unixfs(helia as unknown as Helia))
setStarting(false)
} else {
try {
Expand Down

0 comments on commit 189e67b

Please sign in to comment.