refactor(types): mark internal API exports and exclude from d.ts
BREAKING CHANGE: Internal APIs are now excluded from type decalrations.
This commit is contained in:
@@ -12,12 +12,18 @@ 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 {
|
||||
@@ -29,6 +35,9 @@ export function resolveDynamicComponent(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export function resolveDirective(name: string): Directive | undefined {
|
||||
return resolveAsset(DIRECTIVES, name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user