Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement