You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CaiYuanYiTiHua/types/utils.d.ts

7 lines
183 B
TypeScript

import type { ComputedRef, Ref } from 'vue';
// Ref类型 / ComputedRef类型 / T[P]泛型
export type DynamicProps<T> = {
[P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
};