feat(types): re-expose resolve asset utitlies and registerRuntimeCompiler in type definitions

close #1109
This commit is contained in:
Evan You
2020-05-04 08:52:59 -04:00
parent bc1f097e29
commit 64ef7c76bf
3 changed files with 7 additions and 17 deletions

View File

@@ -12,18 +12,12 @@ import { warn } from '../warning'
const COMPONENTS = 'components'
const DIRECTIVES = 'directives'
/**
* @internal
*/
export function resolveComponent(name: string): Component | string | undefined {
return resolveAsset(COMPONENTS, name) || name
}
export const NULL_DYNAMIC_COMPONENT = Symbol()
/**
* @internal
*/
export function resolveDynamicComponent(
component: unknown
): Component | string | typeof NULL_DYNAMIC_COMPONENT {
@@ -35,9 +29,6 @@ export function resolveDynamicComponent(
}
}
/**
* @internal
*/
export function resolveDirective(name: string): Directive | undefined {
return resolveAsset(DIRECTIVES, name)
}