react-app.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /// <reference types="node" />
  2. /// <reference types="react" />
  3. /// <reference types="react-dom" />
  4. declare namespace NodeJS {
  5. interface ProcessEnv {
  6. readonly NODE_ENV: 'development' | 'production' | 'test';
  7. readonly PUBLIC_URL: string;
  8. }
  9. }
  10. declare module '*.avif' {
  11. const src: string;
  12. export default src;
  13. }
  14. declare module '*.bmp' {
  15. const src: string;
  16. export default src;
  17. }
  18. declare module '*.gif' {
  19. const src: string;
  20. export default src;
  21. }
  22. declare module '*.jpg' {
  23. const src: string;
  24. export default src;
  25. }
  26. declare module '*.jpeg' {
  27. const src: string;
  28. export default src;
  29. }
  30. declare module '*.png' {
  31. const src: string;
  32. export default src;
  33. }
  34. declare module '*.webp' {
  35. const src: string;
  36. export default src;
  37. }
  38. declare module '*.svg' {
  39. import * as React from 'react';
  40. export const ReactComponent: React.FunctionComponent<React.SVGProps<
  41. SVGSVGElement
  42. > & { title?: string }>;
  43. const src: string;
  44. export default src;
  45. }
  46. declare module '*.module.css' {
  47. const classes: { readonly [key: string]: string };
  48. export default classes;
  49. }
  50. declare module '*.module.scss' {
  51. const classes: { readonly [key: string]: string };
  52. export default classes;
  53. }
  54. declare module '*.module.sass' {
  55. const classes: { readonly [key: string]: string };
  56. export default classes;
  57. }