env.d.ts 622 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import type { vShow } from 'vue'
  2. import type { INSTALLED_KEY } from '@element-plus/constants'
  3. declare global {
  4. interface Window {
  5. __sdk: any
  6. KanKan: any
  7. }
  8. const process: {
  9. env: {
  10. NODE_ENV: string
  11. }
  12. }
  13. namespace JSX {
  14. interface IntrinsicAttributes {
  15. class?: any
  16. style?: any
  17. }
  18. }
  19. }
  20. declare module '@vue/runtime-core' {
  21. export interface App {
  22. [INSTALLED_KEY]?: boolean
  23. }
  24. export interface GlobalComponents {
  25. Component: (props: { is: Component | string }) => void
  26. }
  27. export interface ComponentCustomProperties {
  28. vShow: typeof vShow
  29. }
  30. }
  31. export {}