fix: 修复ts类型找不到错误

This commit is contained in:
ganpeng
2022-05-30 22:08:58 +08:00
parent ffac6c0d78
commit 89151afce3

4
types/index.d.ts vendored
View File

@@ -26,7 +26,3 @@ declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;
export type DynamicProps<T> = {
[P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
};