fix typescript error

This commit is contained in:
lloydzhou 2024-07-25 19:38:18 +08:00
parent 556d563ba0
commit 5ec0311f84
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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) {

View File

@ -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);
}