generated from thzxcx/vue3
fix: 类型错误
This commit is contained in:
17
utils/resolver.d.ts
vendored
17
utils/resolver.d.ts
vendored
@ -2,14 +2,11 @@
|
||||
* @Author: peerless_hero peerless_hero@outlook.com
|
||||
* @Date: 2023-07-13 04:11:13
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-13 10:58:35
|
||||
* @LastEditTime: 2023-07-13 11:17:39
|
||||
* @FilePath: \uni\utils\resolver.d.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
type ComponentResolveResult = {
|
||||
|
||||
}
|
||||
interface ImportInfo {
|
||||
as?: string;
|
||||
name?: string;
|
||||
@ -19,13 +16,19 @@ type SideEffectsInfo = (ImportInfo | string)[] | ImportInfo | string | undefined
|
||||
interface ComponentInfo extends ImportInfo {
|
||||
sideEffects?: SideEffectsInfo;
|
||||
}
|
||||
type ComponentResolveResult = string | ComponentInfo | null | undefined | void
|
||||
type ComponentResolverFunction = (name: string) => ComponentResolveResult;
|
||||
interface ComponentResolverObject {
|
||||
type: 'component' | 'directive';
|
||||
resolve: ComponentResolverFunction;
|
||||
}
|
||||
type ComponentResolver = ComponentResolverFunction | ComponentResolverObject;
|
||||
|
||||
/** ThUi 自动导入解析器 */
|
||||
export const resolverThzxcx: ComponentResolverFunction
|
||||
export const resolverThzxcx: ComponentResolver
|
||||
|
||||
/** thorui-uni 自动导入解析器 */
|
||||
export const resolverTui: ComponentResolverFunction
|
||||
export const resolverTui: ComponentResolver
|
||||
|
||||
/** uni-ui 自动导入解析器 */
|
||||
export const resolveruUniUi: ComponentResolverFunction
|
||||
export const resolveruUniUi: ComponentResolver
|
||||
|
Reference in New Issue
Block a user