element-plus/typings/env.d.ts
dopamine cd517d6743
chore(components): [select-v2] remove ts-nocheck comments in select-v2 (#16746)
* chore: remove ts-nocheck comments in select-v2

* take the review comments

* improve emits type

* the keys of emits use camelCase instead of kebab-case

* apply suggestions from code review

Co-authored-by: btea <2356281422@qq.com>

* reduce duplicate ESLint comments

* use more succinct syntax to define props

* revert emits to kebab-case

* fix: type checking failed

* chore: illustrate why return early in validateIcon

* fix: signature with duplicate parameter names

Co-authored-by: qiang <qw13131wang@gmail.com>

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-09-23 13:45:35 +08:00

34 lines
574 B
TypeScript

import type { vShow } from 'vue'
import type { INSTALLED_KEY } from '@element-plus/constants'
declare global {
const process: {
env: {
NODE_ENV: string
}
}
namespace JSX {
interface IntrinsicAttributes {
class?: unknown
style?: unknown
}
}
}
declare module '@vue/runtime-core' {
export interface App {
[INSTALLED_KEY]?: boolean
}
export interface GlobalComponents {
Component: (props: { is: Component | string }) => void
}
export interface ComponentCustomProperties {
vShow: typeof vShow
}
}
export {}