SHARE
TWEET

Untitled

a guest Jul 17th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Property 'showURLQueryString' does not exist on type 'typeof import("querystring-reader")'.  TS2339
  2.      
  3. /// <reference types="node" />
  4.  
  5. declare module 'querystring-reader' {
  6.     export interface Main {
  7.         showURLQueryString(): object
  8.     }
  9. }
  10.      
  11. import React, { useEffect} from 'react';
  12. import querystringreader from 'querystring-reader';
  13.  
  14. interface IContactProps {
  15. }
  16.  
  17. const Contact: React.FunctionComponent<IContactProps> = (props) => {
  18.     useEffect(() => {
  19.         console.log('qs', querystringreader.showURLQueryString());
  20.  
  21.         return () => {
  22.             console.log('page CONTACT - unload ')
  23.  
  24.         }
  25.     },[])
  26.  
  27.     return (
  28.         <MainTmpl>
  29.             contactPage
  30.  
  31.             <ContactForm />
  32.     </MainTmpl>);
  33. };
  34.  
  35. export default Contact;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top