global.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /// <reference types="@tarojs/taro" />
  2. declare module '*.png';
  3. declare module '*.gif';
  4. declare module '*.jpg';
  5. declare module '*.jpeg';
  6. declare module '*.svg';
  7. declare module '*.css';
  8. declare module '*.less';
  9. declare namespace JSX {
  10. interface IntrinsicElements {
  11. 'contact-cell': Partial<{
  12. plugid: string;
  13. startmessage: (e: any) => void;
  14. completemessage: (e: any) => void;
  15. style: React.CSSProperties;
  16. children?: any;
  17. styleType?:number;
  18. }>
  19. 'custom-paragraph': Partial<{
  20. novelManagerId: number;
  21. bookId: string;
  22. chapterIndex: number;
  23. chapterId: string;
  24. paragraphIndex: number;
  25. originalId: string;
  26. ext: string; // 透传参数,JSON 字符串格式
  27. style: React.CSSProperties;
  28. }>
  29. 'full-screen': Partial<{
  30. novelManagerId: number;
  31. bookId: string;
  32. chapterIndex: number;
  33. chapterId: string;
  34. originalId: string;
  35. ext: string; // 透传参数,JSON 字符串格式
  36. style: React.CSSProperties;
  37. }>
  38. }
  39. }
  40. declare namespace NodeJS {
  41. interface ProcessEnv {
  42. TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd'
  43. }
  44. }