fix typescript error
This commit is contained in:
parent
556d563ba0
commit
5ec0311f84
|
@ -15,7 +15,7 @@ async function handle(req: NextRequest, res: NextResponse) {
|
||||||
const body: {
|
const body: {
|
||||||
key: string;
|
key: string;
|
||||||
value: string;
|
value: string;
|
||||||
expiration_ttl?: Number;
|
expiration_ttl?: number;
|
||||||
} = {
|
} = {
|
||||||
key: hashedCode,
|
key: hashedCode,
|
||||||
value: clonedBody,
|
value: clonedBody,
|
||||||
|
|
|
@ -33,7 +33,7 @@ export function HTMLPreview(props: {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleMessage = (e) => {
|
const handleMessage = (e: any) => {
|
||||||
const { id, height, title } = e.data;
|
const { id, height, title } = e.data;
|
||||||
setTitle(title);
|
setTitle(title);
|
||||||
if (id == frameId.current) {
|
if (id == frameId.current) {
|
||||||
|
|
|
@ -528,7 +528,7 @@ export function FullScreen(props: any) {
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleScreenChange = (e) => {
|
const handleScreenChange = (e: any) => {
|
||||||
if (e.target === ref.current) {
|
if (e.target === ref.current) {
|
||||||
setFullScreen(!!document.fullscreenElement);
|
setFullScreen(!!document.fullscreenElement);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue