Explorar el Código

fix/add datatype

keigo-h hace 3 años
padre
commit
bad3a571ca
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 '';
   }