mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
cd517d6743
* 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>
34 lines
574 B
TypeScript
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 {}
|