Skip to content

Commit

Permalink
fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jul 25, 2024
1 parent 556d563 commit 5ec0311
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/api/artifact/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function handle(req: NextRequest, res: NextResponse) {
const body: {
key: string;
value: string;
expiration_ttl?: Number;
expiration_ttl?: number;
} = {
key: hashedCode,
value: clonedBody,
Expand Down
2 changes: 1 addition & 1 deletion app/components/artifact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function HTMLPreview(props: {
*/

useEffect(() => {
const handleMessage = (e) => {
const handleMessage = (e: any) => {
const { id, height, title } = e.data;
setTitle(title);
if (id == frameId.current) {
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui-lib.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ export function FullScreen(props: any) {
}
}, []);
useEffect(() => {
const handleScreenChange = (e) => {
const handleScreenChange = (e: any) => {
if (e.target === ref.current) {
setFullScreen(!!document.fullscreenElement);
}
Expand Down

0 comments on commit 5ec0311

Please sign in to comment.