@vxe-ui/core 4.2.14 → 4.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
|
@@ -136,3 +136,10 @@ type CamelToKebab<S extends string> = S extends `${infer First}${infer Rest}`? `
|
|
|
136
136
|
export type VxeComponentKebabCaseKeys<T> = {
|
|
137
137
|
[K in keyof T as K extends string ? CamelToKebab<K> : K]: T[K]
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* 将指定的属性设置为必选类型
|
|
142
|
+
*/
|
|
143
|
+
export type VxeWithRequired<T, K extends keyof T> = T & {
|
|
144
|
+
[P in K]-?: T[P]
|
|
145
|
+
}
|