فهرست منبع

fix/add datatype

keigo-h 3 سال پیش
والد
کامیت
bad3a571ca
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/app/src/client/services/ShowPageAccessories.tsx

+ 2 - 2
packages/app/src/client/services/ShowPageAccessories.tsx

@@ -2,9 +2,9 @@ import React, { useEffect } from 'react';
 
 import { usePageAccessoriesModal, PageAccessoriesModalContents } from '~/stores/modal';
 
-function hasURLQueryParamValue(key) {
+function hasURLQueryParamValue(key: string): string | null {
 // window.location.href is page URL;
-  const queryStr = new URL(window.location.href).searchParams;
+  const queryStr: URLSearchParams = new URL(window.location.href).searchParams;
   if (queryStr === null) {
     return '';
   }