env.d.ts 566 B

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