13 lines
409 B
TypeScript
13 lines
409 B
TypeScript
import type { App } from 'vue';
|
|
/**
|
|
* Check if a global component with the given name exists
|
|
*
|
|
* 检查给定名称的全局组件是否存在
|
|
*
|
|
* @param name - Component name / 组件名称
|
|
* @param app - Vue app instance / Vue 应用实例
|
|
*
|
|
* @returns Whether the global component exists / 全局组件是否存在
|
|
*/
|
|
export declare const hasGlobalComponent: (name: string, app?: App) => boolean;
|