fix(types): h support for resolveComponent (#2402)

close #2357
This commit is contained in:
Carlos Rodrigues
2020-10-20 20:56:29 +01:00
committed by GitHub
parent fff62e2ee8
commit 1f2a652a9d
3 changed files with 28 additions and 5 deletions

View File

@@ -16,9 +16,7 @@ const DIRECTIVES = 'directives'
/**
* @private
*/
export function resolveComponent(
name: string
): ConcreteComponent | string | undefined {
export function resolveComponent(name: string): ConcreteComponent | string {
return resolveAsset(COMPONENTS, name) || name
}