refactor(runtime-core): rename createAsyncComponent to defineAsyncComponent (#888)
BREAKING CHANGE: `createAsyncComponent` has been renamed to `defineAsyncComponent` for consistency with `defineComponent`.
This commit is contained in:
@@ -31,7 +31,7 @@ export interface AsyncComponentOptions<T = any> {
|
||||
suspensible?: boolean
|
||||
}
|
||||
|
||||
export function createAsyncComponent<
|
||||
export function defineAsyncComponent<
|
||||
T extends PublicAPIComponent = { new (): ComponentPublicInstance }
|
||||
>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T {
|
||||
if (isFunction(source)) {
|
||||
|
||||
Reference in New Issue
Block a user