Skip to content

Commit 5ec0311

Browse files
committed
fix typescript error
1 parent 556d563 commit 5ec0311

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/api/artifact/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function handle(req: NextRequest, res: NextResponse) {
1515
const body: {
1616
key: string;
1717
value: string;
18-
expiration_ttl?: Number;
18+
expiration_ttl?: number;
1919
} = {
2020
key: hashedCode,
2121
value: clonedBody,

app/components/artifact.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function HTMLPreview(props: {
3333
*/
3434

3535
useEffect(() => {
36-
const handleMessage = (e) => {
36+
const handleMessage = (e: any) => {
3737
const { id, height, title } = e.data;
3838
setTitle(title);
3939
if (id == frameId.current) {

app/components/ui-lib.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ export function FullScreen(props: any) {
528528
}
529529
}, []);
530530
useEffect(() => {
531-
const handleScreenChange = (e) => {
531+
const handleScreenChange = (e: any) => {
532532
if (e.target === ref.current) {
533533
setFullScreen(!!document.fullscreenElement);
534534
}

0 commit comments

Comments
 (0)