Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
typescript improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterdev committed Nov 3, 2023
1 parent 2a438d0 commit 82b8704
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import { useState as useReactState, useEffect as useReactEffect } from "react";
import {
useState as useReactState,
useEffect as useReactEffect,
FunctionComponent,
} from "react";

declare global {
const useState: typeof useReactState;
const useEffect: typeof useReactEffect;
const Widget: FunctionComponent<{
src: string;
props?: Object;
trust?: { mode: string };
id?: string;
}>;
}
1 change: 1 addition & 0 deletions src/Posts/Feed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ useEffect(() => {
loadMorePosts();
}, []);

// @ts-ignore
return (
<div
style={{
Expand Down

0 comments on commit 82b8704

Please sign in to comment.