@itzworking/decorated-class 0.0.140 → 0.0.141
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/src/types.d.ts +1 -1
package/package.json
CHANGED
package/src/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type ArrayType<T> = T extends (infer U)[] ? OptionalProps<U>[] : T;
|
|
2
2
|
export type ObjectType<T> = T extends object ? T extends Function ? never : OptionalProps<T> : T;
|
|
3
|
-
export type OptionalProps<C> = undefined extends C ? undefined : {
|
|
3
|
+
export type OptionalProps<C> = undefined | null extends C ? undefined | null : {
|
|
4
4
|
[Key in keyof C as C[Key] extends Function ? never : Key]?: C[Key] extends Array<any> ? ArrayType<C[Key]> : ObjectType<C[Key]>;
|
|
5
5
|
} & Record<string, any>;
|