@vxe-ui/core 3.2.14 → 3.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/tool/common.d.ts +7 -0
package/package.json
CHANGED
package/types/tool/common.d.ts
CHANGED
|
@@ -129,3 +129,10 @@ type CamelToKebab<S extends string> = S extends `${infer First}${infer Rest}`? `
|
|
|
129
129
|
export type VxeComponentKebabCaseKeys<T> = {
|
|
130
130
|
[K in keyof T as K extends string ? CamelToKebab<K> : K]: T[K]
|
|
131
131
|
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* 将指定的属性设置为必选类型
|
|
135
|
+
*/
|
|
136
|
+
export type VxeWithRequired<T, K extends keyof T> = T & {
|
|
137
|
+
[P in K]-?: T[P]
|
|
138
|
+
}
|